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 --- tools/ubsha1.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'tools/ubsha1.c') diff --git a/tools/ubsha1.c b/tools/ubsha1.c index c4203ed99e..9774eea32e 100644 --- a/tools/ubsha1.c +++ b/tools/ubsha1.c @@ -28,9 +28,6 @@ #include #include #include -#ifndef __MINGW32__ -#include -#endif #include #include "sha1.h" @@ -40,16 +37,6 @@ #include #undef __ASSEMBLY__ -#ifndef O_BINARY /* should be define'd on __WIN32__ */ -#define O_BINARY 0 -#endif - -#ifndef MAP_FAILED -#define MAP_FAILED (-1) -#endif - -extern int errno; - extern void sha1_csum (unsigned char *input, int ilen, unsigned char output[20]); int main (int argc, char **argv) -- cgit v1.2.1