typedef signed long int32_t;
typedef signed long long int64_t;
+#if __LP64__
+typedef uint64_t intptr_t;
+typedef uint64_t uintptr_t;
+#else
typedef uint32_t intptr_t;
+typedef uint32_t uintptr_t;
+#endif
+#if 0
+# error "Unknown pointer size"
+#endif
#endif