--- typedef.h
+++ typedef.h
@@ -7,11 +7,12 @@
 #define typedef_h
 
 /* change these typedef declarations to correspond with your platform */
-typedef char Word8;
-typedef unsigned char UWord8;
-typedef short Word16;
-typedef unsigned short UWord16;
-typedef long Word32;
+#include <stdint.h>
+typedef int8_t Word8;
+typedef int8_t UWord8;
+typedef int16_t Word16;
+typedef uint16_t UWord16;
+typedef int32_t Word32;
 typedef double Float64;
 typedef float Float32;
 
