diff options
author | Christoph Scholtes <cschol2112@gmail.com> | 2011-11-05 11:16:01 -0600 |
---|---|---|
committer | Christoph Scholtes <cschol2112@gmail.com> | 2011-11-05 11:16:01 -0600 |
commit | ff4c1c589db1453a4e1fc9b103a53513cab98d6c (patch) | |
tree | 78d6d72efe3dc811691d3158f7b638ead0cd6d06 /nt | |
parent | 4ce9e21271e4f323d708221f2cd4136255876040 (diff) | |
download | emacs-ff4c1c589db1453a4e1fc9b103a53513cab98d6c.tar.gz |
Fix definition of `mode_t'.
Diffstat (limited to 'nt')
-rw-r--r-- | nt/config.nt | 8 |
1 files 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 <http://www.gnu.org/licenses/>. */ # define restrict #endif -/* Define to `int' if <sys/types.h> 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. */ |