Mercurial > ms-int-types
comparison stdint.h @ 12:054398f65efe
Bugfix: fix compiling under VS6, when stdint.h enclosed in 'extern "C" {}'.
| author | ipse.c99@d525d15b-5824-0410-80a3-6185d19c2cde |
|---|---|
| date | Sun, 11 Feb 2007 17:04:32 +0000 |
| parents | fed29a68d73f |
| children | 334a22353122 |
comparison
equal
deleted
inserted
replaced
| 11:bfc13f31112f | 12:054398f65efe |
|---|---|
| 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 #include <wchar.h> | 45 #if _MSC_VER >= 1300 |
| 46 // Include wchar.h only for Visual Studio 2002 or later. | |
| 47 // If you try using this header inside 'extern "C" {}' VS6 will give you bunch | |
| 48 // of compiler errors like this: | |
| 49 // error C2733: second C linkage of overloaded function 'wmemchr' not allowed | |
| 50 # include <wchar.h> | |
| 51 #endif | |
| 46 | 52 |
| 47 // 7.18.1 Integer types | 53 // 7.18.1 Integer types |
| 48 | 54 |
| 49 // 7.18.1.1 Exact-width integer types | 55 // 7.18.1.1 Exact-width integer types |
| 50 typedef __int8 int8_t; | 56 typedef __int8 int8_t; |
