diff options
Diffstat (limited to 'include/llvm/Tools/DataTypes.h')
-rw-r--r-- | include/llvm/Tools/DataTypes.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/llvm/Tools/DataTypes.h b/include/llvm/Tools/DataTypes.h new file mode 100644 index 0000000000..ada16c24da --- /dev/null +++ b/include/llvm/Tools/DataTypes.h @@ -0,0 +1,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 |