comparison stdint.h @ 13:334a22353122

More correct fix for compilation under VS6.
author ipse.c99@d525d15b-5824-0410-80a3-6185d19c2cde
date Sun, 11 Feb 2007 17:53:05 +0000
parents 054398f65efe
children 430312ce8ab9
comparison
equal deleted inserted replaced
12:054398f65efe 13:334a22353122
40 #pragma once 40 #pragma once
41 #endif 41 #endif
42 42
43 #include <BaseTsd.h> 43 #include <BaseTsd.h>
44 #include <limits.h> 44 #include <limits.h>
45 #if _MSC_VER >= 1300 45
46 // Include wchar.h only for Visual Studio 2002 or later. 46 // For Visual Studio 6 in C++ mode wrap <wchar.h> include with 'extern "C++" {}'
47 // If you try using this header inside 'extern "C" {}' VS6 will give you bunch 47 // or compiler give many errors like this:
48 // of compiler errors like this:
49 // error C2733: second C linkage of overloaded function 'wmemchr' not allowed 48 // error C2733: second C linkage of overloaded function 'wmemchr' not allowed
50 # include <wchar.h> 49 #if (_MSC_VER < 1300) && defined(__cplusplus)
50 extern "C++" {
51 #endif
52 # include <wchar.h>
53 #if (_MSC_VER < 1300) && defined(__cplusplus)
54 }
51 #endif 55 #endif
52 56
53 // 7.18.1 Integer types 57 // 7.18.1 Integer types
54 58
55 // 7.18.1.1 Exact-width integer types 59 // 7.18.1.1 Exact-width integer types