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/mingw_support.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'tools/mingw_support.h') diff --git a/tools/mingw_support.h b/tools/mingw_support.h index 1fb6c9382..9e45e6491 100644 --- a/tools/mingw_support.h +++ b/tools/mingw_support.h @@ -34,9 +34,6 @@ #define MAP_SHARED 0x01 /* Share changes */ #define MAP_PRIVATE 0x02 /* Changes are private */ -/* Return value of `mmap' in case of an error */ -#define MAP_FAILED ((void *) -1) - /* Windows 64-bit access macros */ #define LODWORD(x) ((DWORD)((DWORDLONG)(x))) #define HIDWORD(x) ((DWORD)(((DWORDLONG)(x) >> 32) & 0xffffffff)) -- cgit v1.2.3