diff options
author | Mike Frysinger | 2009-07-02 19:23:25 -0400 |
---|---|---|
committer | Wolfgang Denk | 2009-07-19 21:41:46 +0200 |
commit | 37566090766d61beef70c62986b90749920255d8 (patch) | |
tree | 6770441ddc1bc0b9e662e2ea7102da8e10b62d61 /lib_generic | |
parent | 2a2ed845c085eb093b69fa6382fcf7534bb1f4b0 (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 <vapier@gentoo.org>
Diffstat (limited to 'lib_generic')
-rw-r--r-- | lib_generic/md5.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib_generic/md5.c b/lib_generic/md5.c index 9150510bbce..81a09e3f904 100644 --- a/lib_generic/md5.c +++ b/lib_generic/md5.c @@ -25,14 +25,12 @@ and to fit the cifs vfs by Steve French sfrench@us.ibm.com */ +#include "compiler.h" + #ifndef USE_HOSTCC #include <common.h> -#include <linux/string.h> -#else -#include <string.h> -#endif /* USE_HOSTCC */ #include <watchdog.h> -#include <linux/types.h> +#endif /* USE_HOSTCC */ #include <u-boot/md5.h> static void |