diff options
Diffstat (limited to 'lib/win32/emu.h')
-rw-r--r-- | lib/win32/emu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/win32/emu.h b/lib/win32/emu.h index b8539bb6..d0b7081b 100644 --- a/lib/win32/emu.h +++ b/lib/win32/emu.h @@ -39,8 +39,14 @@ #ifndef __MINGW32__ typedef unsigned int mode_t; typedef unsigned int pid_t; + typedef unsigned int uid_t; + typedef unsigned int gid_t; #endif +// Disable Windows' non-standard implementation of min() and max(): +// http://stackoverflow.com/a/5004874/648162 +#define NOMINMAX + // Windows headers #include <winsock2.h> |