From 37566090766d61beef70c62986b90749920255d8 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 2 Jul 2009 19:23:25 -0400 Subject: 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 --- lib_generic/md5.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib_generic') diff --git a/lib_generic/md5.c b/lib_generic/md5.c index 9150510bb..81a09e3f9 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 -#include -#else -#include -#endif /* USE_HOSTCC */ #include -#include +#endif /* USE_HOSTCC */ #include static void -- cgit v1.2.3