X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/8db90b73941f09a17c41069828c64b91eca790d6..48a2a0b49048896dc44fddbfd858198de2c252f9:/msdos/inttypes.h
diff --git a/msdos/inttypes.h b/msdos/inttypes.h
index 650fea1d0a..2f45b56a3f 100644
--- a/msdos/inttypes.h
+++ b/msdos/inttypes.h
@@ -1,6 +1,6 @@
/* Replacement inntypes.h file for building GNU Emacs on MS-DOS with DJGPP.
-Copyright (C) 2011 Free Software Foundation, Inc.
+Copyright (C) 2011-2013 Free Software Foundation, Inc.
This file is part of GNU Emacs.
@@ -20,12 +20,18 @@ along with GNU Emacs. If not, see . */
#ifndef _REPL_INTTYPES_H
#define _REPL_INTTYPES_H
+/* As of May 2011, DJGPP v2.04 does not include stdint.h in its
+ inttypes.h, although it should. Therefore, include stdint.h
+ unconditionally. */
+#include
+
#if __DJGPP__ > 2 || __DJGPP_MINOR__ >= 4
#include_next
#else /* __DJGPP__ < 2.04 */
#include
-#define uintmax_t unsigned long long
#define strtoumax strtoull
+#define strtoimax strtoll
+#define PRIuMAX "llu"
#endif /* __DJGPP__ < 2.04 */
#endif