summaryrefslogtreecommitdiffstats
path: root/make/stub_includes
diff options
context:
space:
mode:
authorXerxes Rånby <[email protected]>2013-01-29 15:08:23 +0100
committerXerxes Rånby <[email protected]>2013-01-29 15:08:23 +0100
commit03e5bba36d7826022ae5d75da96bd3a1dbe0a827 (patch)
treecd7ec7f52859fbee25299bcbd5792b1ebf2102c9 /make/stub_includes
parent2646b95c4b34a0b97426dfc5a9cc5d9423ac889f (diff)
Remove system dependency of intptr_t and uint64_t.
Signed-off-by: Xerxes Rånby <[email protected]>
Diffstat (limited to 'make/stub_includes')
-rw-r--r--make/stub_includes/openal/al-types.h10
-rw-r--r--make/stub_includes/openal/alc-types.h10
2 files changed, 20 insertions, 0 deletions
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