Globally #undef min and max on Windows

This commit is contained in:
Attila Molnar 2014-01-23 14:15:01 +01:00
parent 87ec27cf3c
commit 2f3c378a39
2 changed files with 3 additions and 6 deletions

View File

@ -19,11 +19,6 @@
#include "inspircd.h" #include "inspircd.h"
#ifdef _WIN32
// windows.h defines this
#undef min
#endif
class RepeatMode : public ModeHandler class RepeatMode : public ModeHandler
{ {
private: private:

View File

@ -75,8 +75,10 @@
#define W_OK (1<<1) /* test for write permission */ #define W_OK (1<<1) /* test for write permission */
#define R_OK (1<<2) /* test for read permission */ #define R_OK (1<<2) /* test for read permission */
/* Windows defines this already. */ // Windows defines these already.
#undef ERROR #undef ERROR
#undef min
#undef max
/* strcasecmp is not defined on windows by default */ /* strcasecmp is not defined on windows by default */
#define strcasecmp _stricmp #define strcasecmp _stricmp