summaryrefslogtreecommitdiffstats
path: root/make/stub_includes/openal
diff options
context:
space:
mode:
Diffstat (limited to 'make/stub_includes/openal')
-rw-r--r--make/stub_includes/openal/al-types.h39
-rw-r--r--make/stub_includes/openal/al.h85
-rw-r--r--make/stub_includes/openal/alc-types.h17
3 files changed, 33 insertions, 108 deletions
diff --git a/make/stub_includes/openal/al-types.h b/make/stub_includes/openal/al-types.h
index e15c326..373e125 100644
--- a/make/stub_includes/openal/al-types.h
+++ b/make/stub_includes/openal/al-types.h
@@ -31,12 +31,13 @@ extern "C" {
* applications porting code from AL 1.0
*/
#define OPENAL
-#define ALAPI AL_API
-#define ALAPIENTRY AL_APIENTRY
-#define AL_INVALID (-1)
-#define AL_ILLEGAL_ENUM AL_INVALID_ENUM
-#define AL_ILLEGAL_COMMAND AL_INVALID_OPERATION
+#define ALAPI AL_API
+#define ALAPIENTRY AL_APIENTRY
+#define AL_INVALID (-1)
+#define AL_ILLEGAL_ENUM AL_INVALID_ENUM
+#define AL_ILLEGAL_COMMAND AL_INVALID_OPERATION
+/** Supported AL version. */
#define AL_VERSION_1_0
#define AL_VERSION_1_1
@@ -77,19 +78,29 @@ 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
-
+/**
+ * uint64_t:
+ * Using <gluegen_stddef.h>
+ * Using <gluegen_stdint.h>
+ */
+#include <gluegen_stddef.h>
+#define HAS_STDDEF 1
+#include <gluegen_stdint.h>
/** void type (for opaque pointers only) */
typedef void ALvoid;
+/* Enumerant values begin at column 50. No tabs. */
+
+/** "no distance model" or "no buffer" */
+#define AL_NONE 0
+
+/** Boolean False. */
+#define AL_FALSE 0
+
+/** Boolean True. */
+#define AL_TRUE 1
+
#if defined(__cplusplus)
} /* extern "C" */
#endif
diff --git a/make/stub_includes/openal/al.h b/make/stub_includes/openal/al.h
index bc84517..49a4119 100644
--- a/make/stub_includes/openal/al.h
+++ b/make/stub_includes/openal/al.h
@@ -7,91 +7,6 @@
#include "al-types.h"
#include "alc-types.h"
-#if defined(__cplusplus)
-extern "C" {
-#endif
-
-#ifndef AL_API
- #if defined(AL_LIBTYPE_STATIC)
- #define AL_API
- #elif defined(_WIN32)
- #define AL_API __declspec(dllimport)
- #else
- #define AL_API extern
- #endif
-#endif
-
-#if defined(_WIN32)
- #define AL_APIENTRY __cdecl
-#else
- #define AL_APIENTRY
-#endif
-
-
-/** Deprecated macro. */
-#define OPENAL
-#define ALAPI AL_API
-#define ALAPIENTRY AL_APIENTRY
-#define AL_INVALID (-1)
-#define AL_ILLEGAL_ENUM AL_INVALID_ENUM
-#define AL_ILLEGAL_COMMAND AL_INVALID_OPERATION
-
-/** Supported AL version. */
-#define AL_VERSION_1_0
-#define AL_VERSION_1_1
-
-/** 8-bit boolean */
-typedef char ALboolean;
-
-/** character */
-typedef char ALchar;
-
-/** signed 8-bit 2's complement integer */
-typedef signed char ALbyte;
-
-/** unsigned 8-bit integer */
-typedef unsigned char ALubyte;
-
-/** signed 16-bit 2's complement integer */
-typedef short ALshort;
-
-/** unsigned 16-bit integer */
-typedef unsigned short ALushort;
-
-/** signed 32-bit 2's complement integer */
-typedef int ALint;
-
-/** unsigned 32-bit integer */
-typedef unsigned int ALuint;
-
-/** non-negative 32-bit binary integer size */
-typedef int ALsizei;
-
-/** enumerated 32-bit value */
-typedef int ALenum;
-
-/** 32-bit IEEE754 floating-point */
-typedef float ALfloat;
-
-/** 64-bit IEEE754 floating-point */
-typedef double ALdouble;
-
-/** void type (for opaque pointers only) */
-typedef void ALvoid;
-
-
-/* Enumerant values begin at column 50. No tabs. */
-
-/** "no distance model" or "no buffer" */
-#define AL_NONE 0
-
-/** Boolean False. */
-#define AL_FALSE 0
-
-/** Boolean True. */
-#define AL_TRUE 1
-
-
/**
* Relative source.
* Type: ALboolean
diff --git a/make/stub_includes/openal/alc-types.h b/make/stub_includes/openal/alc-types.h
index ea96803..b84fe7b 100644
--- a/make/stub_includes/openal/alc-types.h
+++ b/make/stub_includes/openal/alc-types.h
@@ -79,15 +79,14 @@ 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
-
+/**
+ * intptr_t:
+ * Using <gluegen_stddef.h>
+ * Using <gluegen_stdint.h>
+ */
+#include <gluegen_stddef.h>
+#define HAS_STDDEF 1
+#include <gluegen_stdint.h>
#if defined(__cplusplus)
} /* extern "C" */