cvs-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Cvs-cvs] Changes to ccvs/windows-NT/config.h.in


From: Conrad T . Pino
Subject: [Cvs-cvs] Changes to ccvs/windows-NT/config.h.in
Date: Mon, 26 Sep 2005 16:25:20 -0400

Index: ccvs/windows-NT/config.h.in
diff -u ccvs/windows-NT/config.h.in:1.97 ccvs/windows-NT/config.h.in:1.98
--- ccvs/windows-NT/config.h.in:1.97    Sun Sep 25 19:11:27 2005
+++ ccvs/windows-NT/config.h.in Mon Sep 26 20:25:18 2005
@@ -1414,9 +1414,32 @@
 
 /* ===================== Special Function Definitions ===================== */
 
-/* If Visual C++ 6.0 */
-#if _MSC_VER == 1200
-static inline int mbsinit( const void * arg ) { return 1; }
+/*
+       Microsoft defines "mbinit" in <wchar.h> for C++ code only.
+
+       Expect link errors for versions:
+
+               earlier than Visual C++ 5.0
+
+               later than Visual C++ .NET 2003
+
+       and Visual C++ .NET is just a guess which might be wrong.
+*/
+
+#if _MSC_VER >= 1100 && _MSC_VER <= 1200
+
+/* If within Visual C++ 5.0 to Visual C++ 6.0 */
+
+inline int mbsinit (const void * arg)
+       { return 1; }
+
+#elif _MSC_VER >= 1300 && _MSC_VER <= 1310
+
+/* If within Visual C++ .NET to Visual C++ .NET 2003 */
+
+inline int mbsinit (const int * arg)
+        { return arg == NULL || ! *arg; }
+
 #endif
 
 /* =========================== End Of This File =========================== */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]