summaryrefslogtreecommitdiff
path: root/src/path.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/path.cc')
-rw-r--r--src/path.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/path.cc b/src/path.cc
index 8be2f26..959d364 100644
--- a/src/path.cc
+++ b/src/path.cc
@@ -28,8 +28,29 @@
#ifndef WIN32
#include <libgen.h>
+
+#ifndef _MAX_DIR
+#define _MAX_DIR 256
+#endif
+
+#ifndef _MAX_DRIVE
+#define _MAX_DRIVE 3
+#endif
+
+#ifndef _MAX_EXT
+#define _MAX_EXT 256
#endif
+#ifndef _MAX_FNAME
+#define _MAX_FNAME 256
+#endif
+
+#ifndef _MAX_PATH
+#define _MAX_PATH 260
+#endif
+
+#endif/*WIN32*/
+
#include <string.h>
#include <stdlib.h>