summaryrefslogtreecommitdiffstats
path: root/tools/bmp_logo.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-07-02 19:23:25 -0400
committerWolfgang Denk <wd@denx.de>2009-07-19 21:41:46 +0200
commit37566090766d61beef70c62986b90749920255d8 (patch)
tree6770441ddc1bc0b9e662e2ea7102da8e10b62d61 /tools/bmp_logo.c
parent2a2ed845c085eb093b69fa6382fcf7534bb1f4b0 (diff)
downloadblackbird-obmc-uboot-37566090766d61beef70c62986b90749920255d8.tar.gz
blackbird-obmc-uboot-37566090766d61beef70c62986b90749920255d8.zip
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 <vapier@gentoo.org>
Diffstat (limited to 'tools/bmp_logo.c')
-rw-r--r--tools/bmp_logo.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/tools/bmp_logo.c b/tools/bmp_logo.c
index e8dd8c8004..47228d255b 100644
--- a/tools/bmp_logo.c
+++ b/tools/bmp_logo.c
@@ -1,15 +1,4 @@
-#include <stdio.h>
-#include <stdlib.h>
-
-#if defined(__linux__)
-#include <stdint.h>
-#else
-#ifdef __CYGWIN__
-#include "elf.h"
-#else
-#include <inttypes.h>
-#endif
-#endif
+#include "compiler.h"
typedef struct bitmap_s { /* bitmap description */
uint16_t width;
OpenPOWER on IntegriCloud