aboutsummaryrefslogtreecommitdiffstats
path: root/make/joal-common-CustomCCode.c
diff options
context:
space:
mode:
authorkbr <[email protected]>2005-12-22 08:01:04 +0000
committerkbr <[email protected]>2005-12-22 08:01:04 +0000
commit7d4baa0cff089699b7e17c71a2609d5f1b58c969 (patch)
tree11b99dad5f256b5ad50b3b406e274a8d1fb3ee1e /make/joal-common-CustomCCode.c
parentdb347e8cb651a73b7609fbf98eefd1b0c8efc6c6 (diff)
Revived gluegen-branch-1-0 branch of JOAL source tree, which was a
never-productized port of the JOAL workspace using GlueGen to autogenerate its code. Brought branch up to current version of GlueGen and OpenAL 1.1 headers. Changed code generation style to use call-through-function-pointer nearly everywhere; resulted in significant refactoring of GlueGen's GLEmitter into generic ProcAddressEmitter, checked in separately. Worked around bug in current OpenAL implementation where alGetProcAddress doesn't work properly for core routines; uses dlsym or similar for function lookup. Revised build.xml to use cpptasks as in JOGL. Cleaned up API to match JOGL's more closely; renamed OpenALException to ALException and made it a RuntimeException, cleaned up ALFactory and ALut, deleted Sound3DException in favor of ALException, moved JOALVersion to util/Version, etc. Added BufferUtils from GlueGen workspace (really need shared project used among all Java Games APIs). Revised ALut, WAVLoader and demos; demos will be checked in later (no Developer rights yet on joal-demos workspace). git-svn-id: file:///home/mbien/NetBeansProjects/JOGAMP/joal-sync/git-svn/../svn-server-sync/joal/branches/gluegen-branch-1-0@96 03bf7f67-59de-4072-a415-9a990d468a3f
Diffstat (limited to 'make/joal-common-CustomCCode.c')
-rwxr-xr-xmake/joal-common-CustomCCode.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/make/joal-common-CustomCCode.c b/make/joal-common-CustomCCode.c
new file mode 100755
index 0000000..f749723
--- /dev/null
+++ b/make/joal-common-CustomCCode.c
@@ -0,0 +1,9 @@
+#ifdef _MSC_VER /* Windows, Microsoft compilers */
+/* This typedef is only needed for VC6 */
+#if _MSC_VER <= 1200
+typedef int intptr_t;
+#endif
+#else
+/* This header seems to be available on all other platforms */
+#include <inttypes.h>
+#endif