From: Christoph Scholtes Date: Sat, 5 Nov 2011 17:16:01 +0000 (-0600) Subject: Fix definition of `mode_t'. X-Git-Tag: emacs-pretest-24.0.92~218^2~9 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1e8110e753937138b7b6265a1da3617931083adc;p=emacs.git Fix definition of `mode_t'. --- diff --git a/nt/config.nt b/nt/config.nt index 0d8a2b49a7d..3a06a9f5b7a 100644 --- a/nt/config.nt +++ b/nt/config.nt @@ -345,11 +345,9 @@ 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 +/* `mode_t' is not defined for MSVC. Define. */ +#ifdef _MSC_VER +typedef unsigned short mode_t; #endif /* A va_copy replacement for MSVC. */