summaryrefslogtreecommitdiffstats
path: root/include/types.h
blob: 9fef8332fa21aa1e05fc7ec0e14acebcd4fb0a21 (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) || defined(__i686)
    typedef uint64 uintptr;
#else
    typedef uint32 uintptr;
#endif
#else
    #error IA-PC only support
#endif

#endif