diff options
author | Eli Zaretskii <eliz@gnu.org> | 2011-06-07 15:34:09 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2011-06-07 15:34:09 +0300 |
commit | f7b2cdf3ad4094e4a12425a01e7ec7c94abd659f (patch) | |
tree | 048928d82600952ec7be1564bb4993a2dc6a1433 /nt/inc/stdint.h | |
parent | 0442dc7f7b592a37bd097ca450a02870f1155096 (diff) | |
download | emacs-f7b2cdf3ad4094e4a12425a01e7ec7c94abd659f.tar.gz |
Update nt/inc/stdint.h for PTRDIFF_MAX.
nt/inc/stdint.h (INT32_MAX, INT64_MAX, INTPTR_MAX, PTRDIFF_MAX)
[!__GNUC__]: New macros.
Diffstat (limited to 'nt/inc/stdint.h')
-rw-r--r-- | nt/inc/stdint.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nt/inc/stdint.h b/nt/inc/stdint.h index 555ca9182ff..4af0346af2c 100644 --- a/nt/inc/stdint.h +++ b/nt/inc/stdint.h @@ -28,14 +28,20 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ 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__ */ |