aboutsummaryrefslogtreecommitdiffstats
path: root/CNativeCode/ptrtypes.h
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2001-11-11 21:30:13 +0000
committerKenneth Russel <[email protected]>2001-11-11 21:30:13 +0000
commitf610ac01f50165b2ea6bc4a81d02abf2e222d876 (patch)
tree2b54144d82803e6665a371b6eeeae6812a16e3ac /CNativeCode/ptrtypes.h
parent3b0e7fd364c6d61b97f4f2daf405b30e662fddc7 (diff)
Support for NVidia AllocateMemoryNV extension and fixed problem with extensions not being loaded
Diffstat (limited to 'CNativeCode/ptrtypes.h')
-rw-r--r--CNativeCode/ptrtypes.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/CNativeCode/ptrtypes.h b/CNativeCode/ptrtypes.h
new file mode 100644
index 0000000..5d730ce
--- /dev/null
+++ b/CNativeCode/ptrtypes.h
@@ -0,0 +1,26 @@
+#ifndef _PTRTYPES_H_
+#define _PTRTYPES_H_
+
+#if (defined(WIN32))
+
+typedef unsigned int uintptr_t;
+
+#elif defined(linux)
+
+typedef unsigned int uintptr_t;
+
+#elif defined(__sun) /* Solaris */
+
+#ifdef _LP64
+typedef unsigned long uintptr_t;
+#else
+typedef unsigned int uintptr_t;
+#endif
+
+#else
+
+#error Please port ptrtypes.h to your platform
+
+#endif
+
+#endif /* #defined _PTRTYPES_H_ */