improve 64bit portability
[picodrive.git] / cpu / cz80 / cz80.h
index 9b97d3b..f3f79b3 100644 (file)
 #ifndef CZ80_H\r
 #define CZ80_H\r
 \r
+// uintptr_t\r
+#include <stdlib.h>\r
+#ifndef _MSC_VER\r
+#include <stdint.h>\r
+#endif\r
+\r
 #ifdef __cplusplus\r
 extern "C" {\r
 #endif\r
@@ -44,7 +50,7 @@ extern "C" {
 #endif\r
 \r
 #ifndef FPTR\r
-#define FPTR   unsigned long\r
+#define FPTR   uintptr_t\r
 #endif\r
 \r
 /*************************************/\r