From 600b1907da0d73b455ba0162d7f53a7e1acd6d05 Mon Sep 17 00:00:00 2001 From: Christoph Scholtes Date: Sat, 5 Nov 2011 08:59:51 -0600 Subject: [PATCH] * nt/config.nt: (mode_t) [!__GNUC__]: Define mode_t for MSVC. --- nt/ChangeLog | 4 ++++ nt/config.nt | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/nt/ChangeLog b/nt/ChangeLog index 30d7824c778..0d595657faf 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog @@ -1,3 +1,7 @@ +2011-11-05 Christoph Scholtes + + * config.nt: (mode_t) [!__GNUC__]: Define mode_t for MSVC. + 2011-11-05 Eli Zaretskii * config.nt (inline) [!__GNUC__]: Define to __inline for MSVC. diff --git a/nt/config.nt b/nt/config.nt index 53c7b50a32a..0d8a2b49a7d 100644 --- a/nt/config.nt +++ b/nt/config.nt @@ -345,6 +345,13 @@ along with GNU Emacs. If not, see . */ # define restrict #endif +/* Define to `int' if does not define. */ +#ifdef __GNUC__ +/* No action required for gcc */ +#else /* MSVC */ +#define mode_t int +#endif + /* A va_copy replacement for MSVC. */ #ifdef _MSC_VER # ifdef _WIN64 -- 2.39.2