#ifndef _STDTYPES_H_
#define _STDTYPES_H_
-typedef unsigned int uint;
+//typedef unsigned int uint;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned long uint32_t;
typedef signed long int32_t;
typedef signed long long int64_t;
-#if __LP64__
+#ifdef __LP64__
typedef uint64_t intptr_t;
typedef uint64_t uintptr_t;
+typedef int64_t ptrdiff_t;
#else
typedef uint32_t intptr_t;
typedef uint32_t uintptr_t;
+typedef int32_t ptrdiff_t;
#endif
#if 0
# error "Unknown pointer size"
#endif
+
#endif