diff --git a/ext/com_dotnet/com_extension.c b/ext/com_dotnet/com_extension.c index 0c7e214024..631287c444 100644 --- a/ext/com_dotnet/com_extension.c +++ b/ext/com_dotnet/com_extension.c @@ -22,6 +22,8 @@ #include "config.h" #endif +#include + #include "php.h" #include "php_ini.h" #include "ext/standard/info.h" @@ -29,8 +31,6 @@ #include "php_com_dotnet_internal.h" #include "Zend/zend_exceptions.h" -#include - ZEND_DECLARE_MODULE_GLOBALS(com_dotnet) static PHP_GINIT_FUNCTION(com_dotnet); diff --git a/ext/com_dotnet/com_misc.c b/ext/com_dotnet/com_misc.c index a133cf65bf..cf37f248a9 100644 --- a/ext/com_dotnet/com_misc.c +++ b/ext/com_dotnet/com_misc.c @@ -22,6 +22,8 @@ #include "config.h" #endif +#include + #include "php.h" #include "php_ini.h" #include "ext/standard/info.h" @@ -29,8 +31,6 @@ #include "php_com_dotnet_internal.h" #include "Zend/zend_exceptions.h" -#include - void php_com_throw_exception(HRESULT code, char *message TSRMLS_DC) { int free_msg = 0; diff --git a/win32/php_stdint.h b/win32/php_stdint.h index 5df1df4777..1c5b83a950 100644 --- a/win32/php_stdint.h +++ b/win32/php_stdint.h @@ -126,6 +126,7 @@ typedef uint64_t uintmax_t; #if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) // [ See footnote 220 at page 257 and footnote 221 at page 259 // 7.18.2.1 Limits of exact-width integer types +#if _MSC_VER >= 1700 && !defined(_INTSAFE_H_INCLUDED_) #define INT8_MIN ((int8_t)_I8_MIN) #define INT8_MAX _I8_MAX #define INT16_MIN ((int16_t)_I16_MIN) @@ -138,6 +139,7 @@ typedef uint64_t uintmax_t; #define UINT16_MAX _UI16_MAX #define UINT32_MAX _UI32_MAX #define UINT64_MAX _UI64_MAX +#endif // 7.18.2.2 Limits of minimum-width integer types #define INT_LEAST8_MIN INT8_MIN