comparison stdint.h @ 14:430312ce8ab9

Remove <BaseTsd.h> include, as it is not present in Visual Studio 2005 Epxress Edition and required only for INT_PTR and UINT_PTR types. 'intptr_t' and 'uintptr_t' types now defined explicitly with #ifdef _WIN64.
author ipse.c99@d525d15b-5824-0410-80a3-6185d19c2cde
date Sat, 24 Feb 2007 14:32:58 +0000
parents 334a22353122
children f831bbea3401
comparison
equal deleted inserted replaced
13:334a22353122 14:430312ce8ab9
38 38
39 #if _MSC_VER > 1000 39 #if _MSC_VER > 1000
40 #pragma once 40 #pragma once
41 #endif 41 #endif
42 42
43 #include <BaseTsd.h>
44 #include <limits.h> 43 #include <limits.h>
45 44
46 // For Visual Studio 6 in C++ mode wrap <wchar.h> include with 'extern "C++" {}' 45 // For Visual Studio 6 in C++ mode wrap <wchar.h> include with 'extern "C++" {}'
47 // or compiler give many errors like this: 46 // or compiler give many errors like this:
48 // error C2733: second C linkage of overloaded function 'wmemchr' not allowed 47 // error C2733: second C linkage of overloaded function 'wmemchr' not allowed
85 typedef uint16_t uint_fast16_t; 84 typedef uint16_t uint_fast16_t;
86 typedef uint32_t uint_fast32_t; 85 typedef uint32_t uint_fast32_t;
87 typedef uint64_t uint_fast64_t; 86 typedef uint64_t uint_fast64_t;
88 87
89 // 7.18.1.4 Integer types capable of holding object pointers 88 // 7.18.1.4 Integer types capable of holding object pointers
90 typedef INT_PTR intptr_t; 89 #ifdef _WIN64 // [
91 typedef UINT_PTR uintptr_t; 90 typedef __int64 intptr_t;
91 typedef unsigned __int64 uintptr_t;
92 #else // _WIN64 ][
93 typedef int intptr_t;
94 typedef unsigned int uintptr_t;
95 #endif // _WIN64 ]
92 96
93 // 7.18.1.5 Greatest-width integer types 97 // 7.18.1.5 Greatest-width integer types
94 typedef int64_t intmax_t; 98 typedef int64_t intmax_t;
95 typedef uint64_t uintmax_t; 99 typedef uint64_t uintmax_t;
96 100