aboutsummaryrefslogtreecommitdiff
path: root/src/shared/Config/dotconfpp/dotconfpp.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-17 18:42:05 -0500
committermegamage <none@none>2009-06-17 18:42:05 -0500
commit90e6a97d7987e3a2ef04706f816194c5aef24422 (patch)
treeec0974af1e32212e6fae9b4bb4c08d10761fa186 /src/shared/Config/dotconfpp/dotconfpp.cpp
parent6fd4113cda5a5e57df34854b0f7ccb86952a8431 (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/shared/Config/dotconfpp/dotconfpp.cpp')
-rw-r--r--src/shared/Config/dotconfpp/dotconfpp.cpp12
1 files changed, 12 insertions, 0 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