summaryrefslogtreecommitdiffstats
path: root/resources/stubs_includes/common/stddef.h
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-11-07 08:28:31 +0100
committerMichael Bien <[email protected]>2010-11-15 16:09:28 +0100
commite98aa3caa114133080e4e1668bfa4c828d5c42bf (patch)
tree3998800a7ecb3fc195ce64d15e410c9a18fe6cc6 /resources/stubs_includes/common/stddef.h
parent09cba4571143544817a45657b04357e4419545f5 (diff)
1st fixes for new gluegen
Diffstat (limited to 'resources/stubs_includes/common/stddef.h')
-rw-r--r--resources/stubs_includes/common/stddef.h31
1 files changed, 21 insertions, 10 deletions
diff --git a/resources/stubs_includes/common/stddef.h b/resources/stubs_includes/common/stddef.h
index c05f1d44..f6c7207b 100644
--- a/resources/stubs_includes/common/stddef.h
+++ b/resources/stubs_includes/common/stddef.h
@@ -1,13 +1,24 @@
+#ifndef __stddef_h_
+#define __stddef_h_
-#if defined(_WIN64)
- typedef __int64 ptrdiff_t;
-#elif defined(__ia64__) || defined(__x86_64__)
- typedef long int ptrdiff_t;
-#else
- typedef int ptrdiff_t;
-#endif
+ /**
+ * Look in the GlueGen.java API documentation for the build-in types (terminal symbols)
+ * definition.
+ *
+ * The following types are build-in:
+ *
+ * __int32
+ * int32_t
+ * uint32_t
+ * __int64
+ * int64_t
+ * uint64_t
+ * ptrdiff_t
+ * size_t
+ */
-#define NULL ((void *)0)
+ #define NULL ((void *)0)
-typedef int wchar_t;
-typedef unsigned long size_t; \ No newline at end of file
+ typedef int wchar_t;
+
+#endif /* __stddef_h_ */