summaryrefslogtreecommitdiffstats
path: root/include/types.h
blob: f7c0eb6c528cc02dd8a1eb57e3fa4c29cb256dfe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef TYPES_H
#define TYPES_H

#include <arch>


#define NULL 0

#if defined(__IAPC)
typedef unsigned char uint8;
typedef unsigned short int uint16;
typedef unsigned long uint32;
typedef unsigned long long uint64;

#if defined(__x86_64)
    typedef uint64 uintptr;
#else
    typedef uint32 uintptr;
#endif
#else
    #error IA-PC only support
#endif

#endif