Move PATH_MAX fallback definitions to alMain.h

This commit is contained in:
Chris Robinson
2014-02-27 18:17:20 -08:00
parent 3867e3857d
commit ea8a85b19c
5 changed files with 9 additions and 31 deletions
-8
View File
@@ -32,7 +32,6 @@
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <limits.h>
#include "alMain.h"
@@ -40,13 +39,6 @@
#include <shlobj.h>
#endif
#ifndef PATH_MAX
#ifdef MAX_PATH
#define PATH_MAX MAX_PATH
#else
#define PATH_MAX 4096
#endif
#endif
typedef struct ConfigEntry {
char *key;
-3
View File
@@ -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)
-10
View File
@@ -32,7 +32,6 @@
#include <time.h>
#include <errno.h>
#include <stdarg.h>
#include <limits.h>
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#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;
-10
View File
@@ -22,7 +22,6 @@
#include <stdlib.h>
#include <ctype.h>
#include <limits.h>
#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)
+9
View File
@@ -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;