Browse Source

Improve RAW32 compatibility with other libraries

inmarket 4 years ago
parent
commit
ed946e24ab
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/gos/gos_raw32.h

+ 7 - 0
src/gos/gos_raw32.h

@@ -33,6 +33,13 @@ typedef unsigned char	bool_t;
33 33
 
34 34
 #if __STDC_VERSION__ >= 199901L
35 35
 	#include <stdint.h>
36
+#elif defined(__GNUC__) || defined(__GNUG__)
37
+	typedef __INT8_TYPE__	int8_t;
38
+	typedef __UINT8_TYPE__	uint8_t;
39
+	typedef __INT16_TYPE__	int16_t;
40
+	typedef __UINT16_TYPE__	uint16_t;
41
+	typedef __INT32_TYPE__	int32_t;
42
+	typedef __UINT32_TYPE__	uint32_t;
36 43
 #else
37 44
 	typedef signed char		int8_t;
38 45
 	typedef unsigned char	uint8_t;