diff options
| author | Eli Zaretskii | 2011-05-06 15:09:08 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2011-05-06 15:09:08 +0300 |
| commit | 0a47eac473aec19f1b964cc06649dc0007e05f1f (patch) | |
| tree | dd930d45ecbbca906e963f85413b6ff159d35d4b | |
| parent | c51453d997574121dba98beed3a24e91015a785c (diff) | |
| download | emacs-0a47eac473aec19f1b964cc06649dc0007e05f1f.tar.gz emacs-0a47eac473aec19f1b964cc06649dc0007e05f1f.zip | |
Adapt Windows include files to latest changes.
nt/inc/inttypes.h [!__MINGW32__]: Include stdint.h. Move the
definition of uintmax_t from here...
nt/inc/stdint.h (uintmax_t): ...to here.
(intptr_t) [!__GNUC__]: New typedef.
| -rw-r--r-- | nt/ChangeLog | 7 | ||||
| -rw-r--r-- | nt/inc/inttypes.h | 2 | ||||
| -rw-r--r-- | nt/inc/stdint.h | 8 |
3 files changed, 16 insertions, 1 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index 83d13ce77c6..6ad8063bb0f 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2011-05-06 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * inc/inttypes.h [!__MINGW32__]: Include stdint.h. Move the | ||
| 4 | definition of uintmax_t from here... | ||
| 5 | * inc/stdint.h (uintmax_t): ...to here. | ||
| 6 | (intptr_t) [!__GNUC__]: New typedef. | ||
| 7 | |||
| 1 | 2011-05-06 Paul Eggert <eggert@cs.ucla.edu> | 8 | 2011-05-06 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 9 | ||
| 3 | * config.nt: Prepare to configure 64-bit integers for older compilers. | 10 | * config.nt: Prepare to configure 64-bit integers for older compilers. |
diff --git a/nt/inc/inttypes.h b/nt/inc/inttypes.h index 8f9c6ede760..3e8b55ab98e 100644 --- a/nt/inc/inttypes.h +++ b/nt/inc/inttypes.h | |||
| @@ -23,7 +23,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 23 | #ifdef __MINGW32__ | 23 | #ifdef __MINGW32__ |
| 24 | #include_next <inttypes.h> | 24 | #include_next <inttypes.h> |
| 25 | #else /* !__MINGW32__ */ | 25 | #else /* !__MINGW32__ */ |
| 26 | #define uintmax_t unsigned __int64 | 26 | #include "stdint.h" |
| 27 | #define strtoumax _strtoui64 | 27 | #define strtoumax _strtoui64 |
| 28 | #endif /* !__MINGW32__ */ | 28 | #endif /* !__MINGW32__ */ |
| 29 | 29 | ||
diff --git a/nt/inc/stdint.h b/nt/inc/stdint.h index ed4e26a6867..555ca9182ff 100644 --- a/nt/inc/stdint.h +++ b/nt/inc/stdint.h | |||
| @@ -29,6 +29,14 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 29 | 29 | ||
| 30 | typedef unsigned int uint32_t; | 30 | typedef unsigned int uint32_t; |
| 31 | 31 | ||
| 32 | #ifdef _WIN64 | ||
| 33 | typedef __int64 intptr_t; | ||
| 34 | #else | ||
| 35 | typedef int intptr_t; | ||
| 36 | #endif | ||
| 37 | |||
| 38 | #define uintmax_t unsigned __int64 | ||
| 39 | |||
| 32 | #endif /* !__GNUC__ */ | 40 | #endif /* !__GNUC__ */ |
| 33 | 41 | ||
| 34 | #endif /* _NT_STDINT_H_ */ | 42 | #endif /* _NT_STDINT_H_ */ |