]> Shamusworld >> Repos - ttedit/blob - src/types.h
cb107ebfab2e30935965ac0015200f8a9258aa3b
[ttedit] / src / types.h
1 //\r
2 // Basic types for platform independent code\r
3 //\r
4 \r
5 #ifndef __TYPES_H__\r
6 #define __TYPES_H__\r
7 \r
8 // This should be portable, since it's part of the C99 standard...!\r
9 \r
10 #include <stdint.h>\r
11 \r
12 typedef uint8_t         uint8;\r
13 typedef int8_t          int8;\r
14 typedef uint16_t        uint16;\r
15 typedef int16_t         int16;\r
16 typedef uint32_t        uint32;\r
17 typedef int32_t         int32;\r
18 typedef uint64_t        uint64;\r
19 typedef int64_t         int64;\r
20 \r
21 /*#ifndef _WINDOWS_\r
22 #define NULL    0\r
23 // This is for non-compliant compilers that don't follow proper scoping rules (and suck). ;-)\r
24 #define for if(false);else for\r
25 #endif*/\r
26 #ifndef NULL\r
27 #define NULL    0\r
28 #endif\r
29 \r
30 #endif  // __TYPES_H__\r