From ea8a85b19ce3c9786defaf22eab4dc4fd5011486 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 27 Feb 2014 18:17:20 -0800 Subject: Move PATH_MAX fallback definitions to alMain.h --- OpenAL32/Include/alMain.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'OpenAL32/Include') 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 #include #include +#include #ifdef HAVE_STRINGS_H #include @@ -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; -- cgit v1.2.3