diff options
| author | megamage <none@none> | 2009-06-17 18:42:05 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-06-17 18:42:05 -0500 |
| commit | 90e6a97d7987e3a2ef04706f816194c5aef24422 (patch) | |
| tree | ec0974af1e32212e6fae9b4bb4c08d10761fa186 /src | |
| parent | 6fd4113cda5a5e57df34854b0f7ccb86952a8431 (diff) | |
[8036] Move unneded defines from dotconfpp.h to dotconfpp.cpp Author: VladimirMangos
This will prevent unexpected redefines and unrelated files build problems.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/shared/Config/dotconfpp/dotconfpp.cpp | 12 | ||||
| -rw-r--r-- | src/shared/Config/dotconfpp/dotconfpp.h | 13 |
2 files changed, 12 insertions, 13 deletions
diff --git a/src/shared/Config/dotconfpp/dotconfpp.cpp b/src/shared/Config/dotconfpp/dotconfpp.cpp index edb85273742..e779637256e 100644 --- a/src/shared/Config/dotconfpp/dotconfpp.cpp +++ b/src/shared/Config/dotconfpp/dotconfpp.cpp @@ -3,6 +3,18 @@ #include "dotconfpp.h" +#ifdef WIN32 +#define PATH_MAX _MAX_PATH +#define strcasecmp stricmp +#define realpath(path,resolved_path) _fullpath(resolved_path, path, _MAX_PATH) +#include <io.h> +#else +#include <unistd.h> +#include <limits.h> +#include <stdint.h> +#include <strings.h> +#endif + #if !defined(R_OK) #define R_OK 04 #endif diff --git a/src/shared/Config/dotconfpp/dotconfpp.h b/src/shared/Config/dotconfpp/dotconfpp.h index 7887f86ccc1..51455854ee7 100644 --- a/src/shared/Config/dotconfpp/dotconfpp.h +++ b/src/shared/Config/dotconfpp/dotconfpp.h @@ -15,19 +15,6 @@ #include <sys/types.h> #include <sys/stat.h> -#ifdef WIN32 -#define PATH_MAX _MAX_PATH -#define snprintf _snprintf -#define strcasecmp stricmp -#define realpath(path,resolved_path) _fullpath(resolved_path, path, _MAX_PATH) -#include <io.h> -#else -#include <unistd.h> -#include <limits.h> -#include <stdint.h> -#include <strings.h> -#endif - #include "mempool.h" class DOTCONFDocument; |
