com php-src: use stddef.h definitions for uintptr_t and i ntptr_t: win32/php_stdint.h
| From: | Anatol Belski | Date: | Thu, 28 Aug 2014 11:07:47 +0000 |
| Subject: | com php-src: use stddef.h definitions for uintptr_t and i ntptr_t: win32/php_stdint.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-81260@lists.php.net to get a copy of this message | ||
Commit: 1c252d5dd4c0499ae58b2a7bdef0118c93c587ec
Author: Anatol Belski <ab@php.net> Thu, 28 Aug 2014 13:07:47 +0200
Parents: 8e4e765f7e1639ea464bd916727b1227ce59ed1a
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1c252d5dd4c0499ae58b2a7bdef0118c93c587ec
Log:
use stddef.h definitions for uintptr_t and intptr_t
Changed paths:
M win32/php_stdint.h
Diff:
diff --git a/win32/php_stdint.h b/win32/php_stdint.h
index 858dcb5..71aec2a 100644
--- a/win32/php_stdint.h
+++ b/win32/php_stdint.h
@@ -116,13 +116,8 @@ typedef uint32_t u_int32_t;
typedef uint64_t uint_fast64_t;
// 7.18.1.4 Integer types capable of holding object pointers
-#ifdef _WIN64 // [
- typedef __int64 intptr_t;
- typedef unsigned __int64 uintptr_t;
-#else // _WIN64 ][
- typedef _W64 int intptr_t;
- typedef _W64 unsigned int uintptr_t;
-#endif // _WIN64 ]
+/* intptr_t and uintptr_t are available from stddef.h */
+#include <stddef.h>
// 7.18.1.5 Greatest-width integer types
typedef int64_t intmax_t;