aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmake/joal-common-CustomCCode.c11
-rw-r--r--make/stub_includes/openal/al-types.h10
-rw-r--r--make/stub_includes/openal/alc-types.h10
-rw-r--r--src/native/almisc.c9
4 files changed, 22 insertions, 18 deletions
diff --git a/make/joal-common-CustomCCode.c b/make/joal-common-CustomCCode.c
index 593f1d5..e620735 100755
--- a/make/joal-common-CustomCCode.c
+++ b/make/joal-common-CustomCCode.c
@@ -1,10 +1,3 @@
-#ifdef _MSC_VER /* Windows, Microsoft compilers */
-/* This typedef is apparently needed for compilers before VC8 */
-#if _MSC_VER < 1400
-typedef int intptr_t;
-#endif
-#else
-/* This header seems to be available on all other platforms */
-#include <inttypes.h>
-#endif
+#include <al-types.h>
+#include <alc-types.h>
#include <string.h>
diff --git a/make/stub_includes/openal/al-types.h b/make/stub_includes/openal/al-types.h
index 6a609e5..e15c326 100644
--- a/make/stub_includes/openal/al-types.h
+++ b/make/stub_includes/openal/al-types.h
@@ -77,6 +77,16 @@ typedef float ALfloat;
/** 64-bit IEEE754 floating-point */
typedef double ALdouble;
+/** uint64_t */
+#if defined(_WIN64)
+ typedef unsigned __int64 uint64_t;
+#elif defined(__ia64__) || defined(__x86_64__)
+ typedef unsigned long int uint64_t;
+#else
+ typedef unsigned int uint64_t;
+#endif
+
+
/** void type (for opaque pointers only) */
typedef void ALvoid;
diff --git a/make/stub_includes/openal/alc-types.h b/make/stub_includes/openal/alc-types.h
index 222a7a8..ea96803 100644
--- a/make/stub_includes/openal/alc-types.h
+++ b/make/stub_includes/openal/alc-types.h
@@ -79,6 +79,16 @@ typedef double ALCdouble;
/** void type (for opaque pointers only) */
typedef void ALCvoid;
+/** intptr_t */
+#if defined(_WIN64)
+ typedef __int64 intptr_t;
+#elif defined(__ia64__) || defined(__x86_64__)
+ typedef long int intptr_t;
+#else
+ typedef int intptr_t;
+#endif
+
+
#if defined(__cplusplus)
} /* extern "C" */
#endif
diff --git a/src/native/almisc.c b/src/native/almisc.c
index c77cb0e..61ee599 100644
--- a/src/native/almisc.c
+++ b/src/native/almisc.c
@@ -10,15 +10,6 @@
#define __cdecl /* Trim non-standard keyword */
#endif
#include "efx.h"
- #ifdef _MSC_VER /* Windows, Microsoft compilers */
- /* This typedef is apparently needed for compilers before VC8 */
- #if _MSC_VER < 1400
- typedef int intptr_t;
- #endif
- #else
- /* This header seems to be available on all other platforms */
- #include <inttypes.h>
- #endif
#include <string.h>