path: root/include/elf.h
diff options
authorMike Frysinger <>2009-07-02 19:23:25 -0400
committerWolfgang Denk <>2009-07-19 21:41:46 +0200
commit37566090766d61beef70c62986b90749920255d8 (patch)
tree6770441ddc1bc0b9e662e2ea7102da8e10b62d61 /include/elf.h
parent2a2ed845c085eb093b69fa6382fcf7534bb1f4b0 (diff)
compiler.h: unify system ifdef cruft here
Shove a lot of the HOSTCC and related #ifdef checking crap into the new compiler.h header so that we can keep all other headers nice and clean. Also introduce custom uswap functions so we don't have to rely on the non standard implementations that a host may (or may not in the case of OS X) provide. This allows mkimage to finally build cleanly on an OS X system. Signed-off-by: Mike Frysinger <>
Diffstat (limited to 'include/elf.h')
1 files changed, 1 insertions, 9 deletions
diff --git a/include/elf.h b/include/elf.h
index f6403881bf..29f276d3f0 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -33,15 +33,7 @@
#ifndef _ELF_H
#define _ELF_H
-#if defined(__BEOS__) || \
- defined(__NetBSD__) || \
- defined(__FreeBSD__) || \
- defined(__sun__) || \
- defined(__APPLE__)
-#include <inttypes.h>
-#elif (defined(__linux__) && defined(USE_HOSTCC)) || defined(__WIN32__)
-#include <stdint.h>
+#include "compiler.h"
* This version doesn't work for 64-bit ABIs - Erik.
OpenPOWER on IntegriCloud