Author: sebor
Date: Sat Mar 22 16:45:59 2008
New Revision: 640122

URL: http://svn.apache.org/viewvc?rev=640122&view=rev
Log:
2008-03-22  Martin Sebor  <[EMAIL PROTECTED]>

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

Modified:
    stdcxx/trunk/include/ansi/climits

Modified: stdcxx/trunk/include/ansi/climits
URL: 
http://svn.apache.org/viewvc/stdcxx/trunk/include/ansi/climits?rev=640122&r1=640121&r2=640122&view=diff
==============================================================================
--- stdcxx/trunk/include/ansi/climits (original)
+++ stdcxx/trunk/include/ansi/climits Sat Mar 22 16:45:59 2008
@@ -23,7 +23,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.
  * 
  **************************************************************************/
 
@@ -103,7 +103,12 @@
 
 #else   // if defined (_RWSTD_NO_PURE_C_HEADERS)
 
-#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_PURE_C_HEADERS
 


Reply via email to