Mercurial > ms-int-types
comparison stdint.h @ 22:ff2caa6b48d1
Forgot about #ifdef __cplusplus guard around 'extern "C"', so inclusion to C files has been broken.
author | ipse.c99@d525d15b-5824-0410-80a3-6185d19c2cde |
---|---|
date | Wed, 13 May 2009 10:53:48 +0000 |
parents | c0040f8fc49b |
children | b1e002710e2d |
comparison
equal
deleted
inserted
replaced
21:c0040f8fc49b | 22:ff2caa6b48d1 |
---|---|
44 | 44 |
45 // For Visual Studio 6 in C++ mode and for many Visual Studio versions when | 45 // For Visual Studio 6 in C++ mode and for many Visual Studio versions when |
46 // compiling for ARM we should wrap <wchar.h> include with 'extern "C++" {}' | 46 // compiling for ARM we should wrap <wchar.h> include with 'extern "C++" {}' |
47 // or compiler give many errors like this: | 47 // or compiler give many errors like this: |
48 // error C2733: second C linkage of overloaded function 'wmemchr' not allowed | 48 // error C2733: second C linkage of overloaded function 'wmemchr' not allowed |
49 #ifdef __cplusplus | |
49 extern "C" { | 50 extern "C" { |
50 # include <wchar.h> | 51 #endif |
52 # include <wchar.h> | |
53 #ifdef __cplusplus | |
51 } | 54 } |
55 #endif | |
52 | 56 |
53 // Define _W64 macros to mark types changing their size, like intptr_t. | 57 // Define _W64 macros to mark types changing their size, like intptr_t. |
54 #ifndef _W64 | 58 #ifndef _W64 |
55 # if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && _MSC_VER >= 1300 | 59 # if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && _MSC_VER >= 1300 |
56 # define _W64 __w64 | 60 # define _W64 __w64 |