summaryrefslogtreecommitdiff
path: root/include/llvm/Tools/DataTypes.h
blob: ada16c24da37d842d98906a596aa4b2116ec4c57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

// TODO: This file sucks.  Not only does it not work, but this stuff should be
// autoconfiscated anyways. Major FIXME


#ifndef LLVM_TOOLS_DATATYPES_H
#define LLVM_TOOLS_DATATYPES_H

// Should define the following:
//   LITTLE_ENDIAN if applicable
//   int64_t 
//   uint64_t

#ifdef LINUX
#include <stdint.h>       // Defined by ISO C 99
#include <endian.h>

#else
#include <sys/types.h>
#ifdef _LITTLE_ENDIAN
#define LITTLE_ENDIAN 1
#endif
#endif


#endif