diff options
author | Lautis Sun <lautis0503@gmail.com> | 2018-10-19 18:56:46 +0300 |
---|---|---|
committer | Lautis Sun <lautis0503@gmail.com> | 2018-10-19 18:56:46 +0300 |
commit | 2b64f2de568757b1c4818f3aded1dd716b7ea5f9 (patch) | |
tree | 9d3d205f1e1044db1abc7f7ab7bbfe7479210ecd | |
parent | 677733daa2859c963da953872f8d591251c2ae5e (diff) |
Fix some macros (#61 and #62)
-rw-r--r-- | tinydir.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -45,7 +45,9 @@ extern "C" { #include <stdlib.h> #include <string.h> #ifdef _MSC_VER -# define WIN32_LEAN_AND_MEAN +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +# endif # include <windows.h> # include <tchar.h> # pragma warning(push) @@ -89,7 +91,9 @@ extern "C" { # define _TINYDIR_PATH_MAX MAX_PATH #elif defined __linux__ # include <limits.h> -# define _TINYDIR_PATH_MAX PATH_MAX +# ifdef PATH_MAX +# define _TINYDIR_PATH_MAX PATH_MAX +# endif #elif defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) # include <sys/param.h> # if defined(BSD) |