Usermode/AxWin3 - More WM IPC messages implemented
[tpg/acess2.git] / Usermode / include / stdint.h
index 6238a63..477f8eb 100644 (file)
@@ -1,9 +1,8 @@
 /*
  */
-#ifndef _STDTYPES_H_
-#define _STDTYPES_H_
+#ifndef _STDINT_H_
+#define _STDINT_H_
 
-//typedef unsigned int uint;
 typedef unsigned char  uint8_t;
 typedef unsigned short uint16_t;
 typedef unsigned int   uint32_t;
@@ -14,19 +13,19 @@ typedef signed short        int16_t;
 typedef signed int             int32_t;
 typedef signed long long       int64_t;
 
-#ifdef __LP64__
-typedef uint64_t       intptr_t;
+#if ARCHDIR_is_x86
+typedef int32_t        intptr_t;
+typedef uint32_t       uintptr_t;
+#elif ARCHDIR_is_x86_64
+typedef int64_t        intptr_t;
 typedef uint64_t       uintptr_t;
-typedef int64_t        ptrdiff_t;
+#elif ARCHDIR_is_armv7
+typedef int32_t        intptr_t;
+typedef uint32_t       uintptr_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
 
-typedef uint64_t       off_t;
+//typedef uint64_t     off_t;
 
 #endif

UCC git Repository :: git.ucc.asn.au