Skip to content

Commit

Permalink
Fix some macros (#61 and #62)
Browse files Browse the repository at this point in the history
  • Loading branch information
lautis0503 committed Oct 19, 2018
1 parent 677733d commit 2b64f2d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tinydir.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 2b64f2d

Please sign in to comment.