rayzor
diff src/inttypes.h @ 0:2a5340a6eee4
rayzor first commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 05 Apr 2014 08:46:27 +0300 |
parents | |
children | a826bf0fb169 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/inttypes.h Sat Apr 05 08:46:27 2014 +0300 1.3 @@ -0,0 +1,16 @@ 1.4 +#ifndef INT_TYPES_H_ 1.5 +#define INT_TYPES_H_ 1.6 + 1.7 +#if defined(__DOS__) || defined(WIN32) 1.8 +typedef char int8_t; 1.9 +typedef short int16_t; 1.10 +typedef long int32_t; 1.11 + 1.12 +typedef unsigned char uint8_t; 1.13 +typedef unsigned short uint16_t; 1.14 +typedef unsigned long uint32_t; 1.15 +#else 1.16 +#include <stdint.h> 1.17 +#endif 1.18 + 1.19 +#endif /* INT_TYPES_H_ */