diff options
author | Chris Robinson <[email protected]> | 2014-02-27 18:17:20 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-02-27 18:17:20 -0800 |
commit | ea8a85b19ce3c9786defaf22eab4dc4fd5011486 (patch) | |
tree | f82c741bba701ed98dacb1b7d6ec454810c3b4b3 /OpenAL32/Include | |
parent | 3867e3857de3b52afb505c173ace0819252b259c (diff) |
Move PATH_MAX fallback definitions to alMain.h
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alMain.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index e6050b7f..06fb954c 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -6,6 +6,7 @@ #include <stdarg.h> #include <assert.h> #include <math.h> +#include <limits.h> #ifdef HAVE_STRINGS_H #include <strings.h> @@ -300,6 +301,14 @@ typedef ptrdiff_t ALsizeiptrEXT; #define FORCE_ALIGN #endif +#ifndef PATH_MAX +#ifdef MAX_PATH +#define PATH_MAX MAX_PATH +#else +#define PATH_MAX 4096 +#endif +#endif + static const union { ALuint u; |