We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a032f7 commit b01c45cCopy full SHA for b01c45c
src/support/dirpath.h
@@ -6,14 +6,17 @@
6
#ifdef _OS_WINDOWS_
7
#define PATHSEPSTRING "\\"
8
#define PATHLISTSEPSTRING ";"
9
+#if defined(PATH_MAX)
10
#define JL_PATH_MAX PATH_MAX
-#if defined(_COMPILER_CLANG_)
11
+#else // _COMPILER_CLANG_ may have the name reversed
12
#define JL_PATH_MAX MAX_PATH
13
#endif
14
#else
15
#define PATHSEPSTRING "/"
16
#define PATHLISTSEPSTRING ":"
-#ifndef JL_PATH_MAX // many platforms don't have a max path, we define one anyways
17
18
+#define JL_PATH_MAX PATH_MAX
19
+#else // many platforms don't have a max path, we define one anyways
20
#define JL_PATH_MAX 1024
21
22
0 commit comments