X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/9f8370e63f65f76887b319ab6a0368d4a332777c..322b7dab59b98b5d8625d2cd29e48f1ce605f769:/nt/inc/stdint.h diff --git a/nt/inc/stdint.h b/nt/inc/stdint.h index ed4e26a686..4af0346af2 100644 --- a/nt/inc/stdint.h +++ b/nt/inc/stdint.h @@ -28,6 +28,20 @@ along with GNU Emacs. If not, see . */ stdint.h is not available, e.g. Microsoft Visual Studio. */ typedef unsigned int uint32_t; +#define INT32_MAX 2147483647 +/* "i64" is the non-standard suffix used by MSVC for 64-bit constants. */ +#define INT64_MAX 9223372036854775807i64 + +#ifdef _WIN64 + typedef __int64 intptr_t; +#define INTPTR_MAX INT64_MAX +#else + typedef int intptr_t; +#define INTPTR_MAX INT32_MAX +#endif + +#define uintmax_t unsigned __int64 +#define PTRDIFF_MAX INTPTR_MAX #endif /* !__GNUC__ */