Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a workaround for systems not defining PATH_MAX
  • Loading branch information
ecsv committed Sep 1, 2013
1 parent c261bed commit 92e06a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Glide64/Ini.cpp
Expand Up @@ -59,6 +59,9 @@
#define PATH_MAX _MAX_PATH
#define stricmp _stricmp
#endif
#ifndef PATH_MAX
#define PATH_MAX 4096
#endif

FILE *ini;
int sectionstart;
Expand Down
3 changes: 3 additions & 0 deletions src/Glide64/Main.cpp
Expand Up @@ -55,6 +55,9 @@
#include <time.h>
#define PATH_MAX MAX_PATH
#endif
#ifndef PATH_MAX
#define PATH_MAX 4096
#endif
#include "osal_dynamiclib.h"
#ifdef TEXTURE_FILTER // Hiroshi Morii <koolsmoky@users.sourceforge.net>
#include <stdarg.h>
Expand Down

0 comments on commit 92e06a0

Please sign in to comment.