You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2007/09/18 02:30:28 UTC

svn commit: r576635 - /incubator/stdcxx/trunk/etc/config/src/LIMITS.cpp

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  <se...@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