Mercurial > ms-int-types
changeset 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 |
files | stdint.h |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/stdint.h +++ b/stdint.h @@ -40,7 +40,6 @@ #pragma once #endif -#include <BaseTsd.h> #include <limits.h> // For Visual Studio 6 in C++ mode wrap <wchar.h> include with 'extern "C++" {}' @@ -87,8 +86,13 @@ typedef uint32_t uint_fast32_t; typedef uint64_t uint_fast64_t; // 7.18.1.4 Integer types capable of holding object pointers -typedef INT_PTR intptr_t; -typedef UINT_PTR uintptr_t; +#ifdef _WIN64 // [ + typedef __int64 intptr_t; + typedef unsigned __int64 uintptr_t; +#else // _WIN64 ][ + typedef int intptr_t; + typedef unsigned int uintptr_t; +#endif // _WIN64 ] // 7.18.1.5 Greatest-width integer types typedef int64_t intmax_t;