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