gui stuff
[retroray] / src / sizeint.h
1 #ifndef SIZEINT_H_
2 #define SIZEINT_H_
3
4 /* for C99 or selected toolchain versions we can use stdint.h */
5 #if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199900) || \
6         (defined(_MSC_VER) && _MSC_VER >= 1600) || \
7         (defined(__WATCOMC__) && __WATCOMC__ >= 1200)
8 #include <stdint.h>
9
10 #elif defined(__DOS__) && defined(__WATCOMC__) && __WATCOMC__ < 1200
11 typedef signed char int8_t;
12 typedef unsigned char uint8_t;
13 typedef short int16_t;
14 typedef unsigned short uint16_t;
15 typedef long int32_t;
16 typedef unsigned long uint32_t;
17 typedef long intptr_t;
18 typedef unsigned long uintptr_t;
19
20 #elif defined(_MSC_VER) && (_MSC_VER < 1600)
21 typedef signed __int8 int8_t;
22 typedef unsigned __int8 uint8_t;
23 typedef __int16 int16_t;
24 typedef unsigned __int16 uint16_t;
25 typedef __int32 int32_t;
26 typedef unsigned __int32 uint32_t;
27 typedef long intptr_t;
28 typedef unsigned long uintptr_t;
29
30 #else
31 #include <sys/types.h>
32 #endif
33
34
35 #endif  /* SIZEINT_H_ */