summaryrefslogtreecommitdiff
path: root/src/path.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-06-07 11:47:26 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-06-07 11:47:26 +0200
commitcbd29ad93827f2494864668ae6759416f74ba3cc (patch)
treebe037173a3d8d265198d51f34105200ba6474a21 /src/path.cc
parent1dfc8491f069a8fd7a9c870c3e79c2596199b45a (diff)
Add missing defines.
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>