stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r576635 - /incubator/stdcxx/trunk/etc/config/src/LIMITS.cpp
Date Tue, 18 Sep 2007 00:30:28 GMT
Author: sebor
Date: Mon Sep 17 17:30:27 2007
New Revision: 576635

URL: http://svn.apache.org/viewvc?rev=576635&view=rev
Log:
2007-09-18  Martin Sebor  <sebor@roguewave.com>

	* LIMITS.cpp [_RWSTD_NO_LIMITS_H] (<limits.h>): Guarded the #include
	directive introduced in revision 575978 to prevent EDG eccp errors
	on Linux caused by the header making use of the #include_next gcc
	extension.

Modified:
    incubator/stdcxx/trunk/etc/config/src/LIMITS.cpp

Modified: incubator/stdcxx/trunk/etc/config/src/LIMITS.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/LIMITS.cpp?rev=576635&r1=576634&r2=576635&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/LIMITS.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/LIMITS.cpp Mon Sep 17 17:30:27 2007
@@ -1,9 +1,14 @@
 // computing numerical limits
 
+#include "config.h"
+
 #include <stdio.h>    // for printf()
-#include <limits.h>   // for MB_MAX_LEN
 
-#include "config.h"
+#ifndef _RWSTD_NO_LIMITS_H
+   // avoid including broken <limits.h> (due to the use of #include_next)
+   // with EDG eccp on Linux
+#  include <limits.h>   // for MB_LEN_MAX
+#endif   // _RWSTD_NO_LIMITS_H
 
 
 // establish a dependency on the test for long long



Mime
View raw message