stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r640121 - /stdcxx/trunk/include/ansi/limits.h
Date Sat, 22 Mar 2008 23:30:13 GMT
Author: sebor
Date: Sat Mar 22 16:30:13 2008
New Revision: 640121

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

	STDCXX-768
	* include/ansi/limits.h: Used the gcc extension #include_next to
	include the compiler's <limits.h> header and to prevent a gcc 4.3
	error: no include path in which to search for limits.h.

Modified:
    stdcxx/trunk/include/ansi/limits.h

Modified: stdcxx/trunk/include/ansi/limits.h
URL: http://svn.apache.org/viewvc/stdcxx/trunk/include/ansi/limits.h?rev=640121&r1=640120&r2=640121&view=diff
==============================================================================
--- stdcxx/trunk/include/ansi/limits.h (original)
+++ stdcxx/trunk/include/ansi/limits.h Sat Mar 22 16:30: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.
  * 
  **************************************************************************/
 
@@ -106,7 +106,13 @@
 #    pragma GCC system_header
 #  endif
 
-#  include _RWSTD_ANSI_C_LIMITS_H
+#  ifdef __GNUC__
+     // use the gcc extension to #include the compiler's limits.h
+#    include_next <limits.h>
+#  else
+#    include _RWSTD_ANSI_C_LIMITS_H
+#  endif   // gcc
+
 #endif   // _RWSTD_NO_DEPRECATED_C_HEADERS
 
 #if defined (__hpux__) || defined (__hpux) || defined (hpux)



Mime
View raw message