diff options
author | Peter Powell <petpow@saberuk.com> | 2013-05-07 03:55:29 +0100 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-05-07 05:00:33 +0200 |
commit | b89aa87280767f47381b8a612f73f1d0fe682e2e (patch) | |
tree | 5d6ee39e4b091e90cb3ff6e629aa80d21e3e4ab4 /win | |
parent | 8790551dc182cd8804ee7d8ef89ccb31067cc2a4 (diff) |
Clean up cross-platform compatibility.
- Move compatibility macros to a new header file.
- Sort system include files in alphabetical order.
- Clean up signal handling (thanks to Adam).
Diffstat (limited to 'win')
-rw-r--r-- | win/inspircd_win32wrapper.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h index 9b18715cd..a1463b318 100644 --- a/win/inspircd_win32wrapper.h +++ b/win/inspircd_win32wrapper.h @@ -43,9 +43,6 @@ #define VC_EXTRALEAN #define WIN32_LEAN_AND_MEAN -/* They just have to be *different*, don't they. */ -#define PATH_MAX MAX_PATH - /* Macros for exporting symbols - dependant on what is being compiled */ #ifdef DLL_BUILD @@ -72,6 +69,9 @@ #include <direct.h> #include <process.h> +/* Windows defines this already. */ +#undef ERROR + /* strcasecmp is not defined on windows by default */ #define strcasecmp _stricmp #define strncasecmp _strnicmp |