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 --- Alc/alcConfig.c | 8 -------- Alc/backends/pulseaudio.c | 3 --- Alc/helpers.c | 10 ---------- Alc/hrtf.c | 10 ---------- 4 files changed, 31 deletions(-) (limited to 'Alc') diff --git a/Alc/alcConfig.c b/Alc/alcConfig.c index a2355fc0..740d0f86 100644 --- a/Alc/alcConfig.c +++ b/Alc/alcConfig.c @@ -32,7 +32,6 @@ #include #include #include -#include #include "alMain.h" @@ -40,13 +39,6 @@ #include #endif -#ifndef PATH_MAX -#ifdef MAX_PATH -#define PATH_MAX MAX_PATH -#else -#define PATH_MAX 4096 -#endif -#endif typedef struct ConfigEntry { char *key; diff --git a/Alc/backends/pulseaudio.c b/Alc/backends/pulseaudio.c index e2ae52ae..1892e733 100644 --- a/Alc/backends/pulseaudio.c +++ b/Alc/backends/pulseaudio.c @@ -306,9 +306,6 @@ static ALCboolean pulse_load(void) static pa_context_flags_t pulse_ctx_flags; static pa_proplist *prop_filter; -#ifndef PATH_MAX -#define PATH_MAX 4096 -#endif /* PulseAudio Event Callbacks */ static void context_state_callback(pa_context *context, void *pdata) diff --git a/Alc/helpers.c b/Alc/helpers.c index 4b3973d9..e3f51b2c 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -32,7 +32,6 @@ #include #include #include -#include #ifdef HAVE_MALLOC_H #include #endif @@ -107,15 +106,6 @@ extern inline ALint fastf2i(ALfloat f); extern inline ALuint fastf2u(ALfloat f); -#ifndef PATH_MAX -#ifdef MAX_PATH -#define PATH_MAX MAX_PATH -#else -#define PATH_MAX 4096 -#endif -#endif - - ALuint CPUCapFlags = 0; diff --git a/Alc/hrtf.c b/Alc/hrtf.c index dc91e474..a0f8833b 100644 --- a/Alc/hrtf.c +++ b/Alc/hrtf.c @@ -22,7 +22,6 @@ #include #include -#include #include "AL/al.h" #include "AL/alc.h" @@ -32,15 +31,6 @@ #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) -- cgit v1.2.3