From: Christoph Scholtes Date: Sat, 5 Nov 2011 14:59:51 +0000 (-0600) Subject: * nt/config.nt: (mode_t) [!__GNUC__]: Define mode_t for MSVC. X-Git-Tag: emacs-pretest-24.0.92~218^2~12 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=600b1907da0d73b455ba0162d7f53a7e1acd6d05;p=emacs.git * nt/config.nt: (mode_t) [!__GNUC__]: Define mode_t for MSVC. --- 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