stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r575978 - /incubator/stdcxx/trunk/etc/config/src/LIMITS.cpp
Date Sat, 15 Sep 2007 21:01:30 GMT
Author: sebor
Date: Sat Sep 15 14:01:29 2007
New Revision: 575978

URL: http://svn.apache.org/viewvc?rev=575978&view=rev
Log:
2007-09-13 Travis Vitek <vitek@roguewave.com>

	STDCXX-436
	* LIMITS.cpp [_WIN32] (main): Include limits.h to get definition
	of MB_LEN_MAX so that we don't have to guess the correct value.
	If we must guess a default on _WIN32, use a known good value.

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=575978&r1=575977&r2=575978&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/LIMITS.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/LIMITS.cpp Sat Sep 15 14:01:29 2007
@@ -1,6 +1,7 @@
 // computing numerical limits
 
 #include <stdio.h>    // for printf()
+#include <limits.h>   // for MB_MAX_LEN
 
 #include "config.h"
 
@@ -366,6 +367,8 @@
     printf ("#define _RWSTD_MB_LEN_MAX %d   /* known glibc 2.2 value */\n", 16);
 #  elif defined (__sun__) || defined (__sun) || defined (__sun)
     printf ("#define _RWSTD_MB_LEN_MAX %d   /* known SunOS libc value */\n", 5);
+#  elif defined (_WIN32)
+    printf ("#define _RWSTD_MB_LEN_MAX %d   /* known WIN32 libc value */\n", 5);
 #  else
     printf ("#define _RWSTD_MB_LEN_MAX %d   /* guess */\n", 8);
 #  endif



Mime
View raw message