aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-02-27 02:55:43 -0800
committerChris Robinson <[email protected]>2014-02-27 02:55:43 -0800
commit3867e3857de3b52afb505c173ace0819252b259c (patch)
tree5b32c2d63134a14a27713074ad17294621ea3bba /Alc
parent6e7c0e15eb0c70f215696a5aade043aa564b48bd (diff)
Add back the missing PATH_MAX fallback
Diffstat (limited to 'Alc')
-rw-r--r--Alc/hrtf.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Alc/hrtf.c b/Alc/hrtf.c
index a0f8833b..dc91e474 100644
--- a/Alc/hrtf.c
+++ b/Alc/hrtf.c
@@ -22,6 +22,7 @@
#include <stdlib.h>
#include <ctype.h>
+#include <limits.h>
#include "AL/al.h"
#include "AL/alc.h"
@@ -31,6 +32,15 @@
#include "hrtf.h"
+#ifndef PATH_MAX
+#ifdef MAX_PATH
+#define PATH_MAX MAX_PATH
+#else
+#define PATH_MAX 4096
+#endif
+#endif
+
+
/* Current data set limits defined by the makehrtf utility. */
#define MIN_IR_SIZE (8)
#define MAX_IR_SIZE (128)