From 1e8110e753937138b7b6265a1da3617931083adc Mon Sep 17 00:00:00 2001 From: Christoph Scholtes Date: Sat, 5 Nov 2011 11:16:01 -0600 Subject: [PATCH] Fix definition of `mode_t'. --- nt/config.nt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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. */ -- 2.39.2