stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r656914 - /stdcxx/branches/4.2.x/src/limits.cpp
Date Fri, 16 May 2008 01:10:13 GMT
Author: sebor
Date: Thu May 15 18:10:13 2008
New Revision: 656914

URL: http://svn.apache.org/viewvc?rev=656914&view=rev
Log:
2008-05-15  Martin Sebor  <sebor@roguewave.com>

	STDCXX-937
	* src/limits.cpp: Used the quoted form of an #include directive
	to #include the <limits> header twice to fool Sun C++, otherwise
	the compiler fails to #include the header twice.

Modified:
    stdcxx/branches/4.2.x/src/limits.cpp

Modified: stdcxx/branches/4.2.x/src/limits.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/src/limits.cpp?rev=656914&r1=656913&r2=656914&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/src/limits.cpp (original)
+++ stdcxx/branches/4.2.x/src/limits.cpp Thu May 15 18:10:13 2008
@@ -22,7 +22,7 @@
  * implied.   See  the License  for  the  specific language  governing
  * permissions and limitations under the License.
  *
- * Copyright 1994-2006 Rogue Wave Software.
+ * Copyright 1994-2008 Rogue Wave Software, Inc.
  * 
  **************************************************************************/
 
@@ -31,12 +31,17 @@
 #include <rw/_defs.h>  
                        
 // define generic template and specializations
-#include <limits>
+// use the quoted form of the #include directive to fool Sun C++
+// otherwise the compiler fails to #include the header twice,
+// most likely because it makes assumptions about headers with
+// (C++) standard names
+#include "limits"
 
 #if _MSC_VER != 1300   // working around an MSVC 7.0 bug (PR #26562)
 #  undef _RWSTD_LIMITS_INCLUDED
 #  define _RWSTD_DEFINE_EXPORTS
 
    // define static data members of specializations
-#  include <limits>
+   // again, use the quoted form of the #include directive
+#  include "limits"
 #endif   // MSVC != 7.0



Mime
View raw message