diff options
Diffstat (limited to 'winsup/mingw/include/io.h')
-rw-r--r-- | winsup/mingw/include/io.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/winsup/mingw/include/io.h b/winsup/mingw/include/io.h index cfab09880..d980726b1 100644 --- a/winsup/mingw/include/io.h +++ b/winsup/mingw/include/io.h @@ -18,7 +18,6 @@ * an inclusion of sys/types.h */ #include <sys/types.h> /* To get time_t. */ -#include <stdint.h> /* For intptr_t. */ /* * Attributes of files as returned by _findfirst et al. @@ -34,6 +33,15 @@ #ifndef RC_INVOKED +#ifndef _INTPTR_T_DEFINED +#define _INTPTR_T_DEFINED +#ifdef _WIN64 + typedef __int64 intptr_t; +#else + typedef int intptr_t; +#endif +#endif + #ifndef _FSIZE_T_DEFINED typedef unsigned long _fsize_t; #define _FSIZE_T_DEFINED |