mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
Globally #undef min and max on Windows
This commit is contained in:
parent
87ec27cf3c
commit
2f3c378a39
@ -19,11 +19,6 @@
|
||||
|
||||
#include "inspircd.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
// windows.h defines this
|
||||
#undef min
|
||||
#endif
|
||||
|
||||
class RepeatMode : public ModeHandler
|
||||
{
|
||||
private:
|
||||
|
@ -75,8 +75,10 @@
|
||||
#define W_OK (1<<1) /* test for write permission */
|
||||
#define R_OK (1<<2) /* test for read permission */
|
||||
|
||||
/* Windows defines this already. */
|
||||
// Windows defines these already.
|
||||
#undef ERROR
|
||||
#undef min
|
||||
#undef max
|
||||
|
||||
/* strcasecmp is not defined on windows by default */
|
||||
#define strcasecmp _stricmp
|
||||
|
Loading…
x
Reference in New Issue
Block a user