From: Lothar Waßmann Date: Tue, 18 Feb 2014 12:46:09 +0000 (+0100) Subject: tools: elftosb: remove '/usr/include' prefix from include path X-Git-Tag: KARO-TX6-2014-03-07~16^2 X-Git-Url: https://git.kernelconcepts.de/?a=commitdiff_plain;h=283460c388a0937f3eee10116953b028645afff1;p=karo-tx-uboot.git tools: elftosb: remove '/usr/include' prefix from include path --- diff --git a/tools/elftosb/common/stdafx.h b/tools/elftosb/common/stdafx.h index e6bf9dd3d1..070daa2ca9 100644 --- a/tools/elftosb/common/stdafx.h +++ b/tools/elftosb/common/stdafx.h @@ -16,10 +16,10 @@ #if defined(WIN32) //#include - + // define this macro for use in VC++ #if !defined(__LITTLE_ENDIAN__) - #define __LITTLE_ENDIAN__ 1 + #define __LITTLE_ENDIAN__ 1 #endif // !defined(__LITTLE_ENDIAN__) #endif // defined(WIN32) @@ -27,7 +27,7 @@ // For Linux systems only, types.h only defines the signed // integer types. This is not professional code. // Update: They are defined in the header files in the more recent version of redhat enterprise gcc. -#include "/usr/include/sys/types.h" +#include #include //typedef unsigned long uint32_t; //typedef unsigned short uint16_t; @@ -38,7 +38,7 @@ // give a default endian in case one is not defined on Linux (it should be, though) #if !defined(__LITTLE_ENDIAN__) && !defined(__BIG_ENDIAN__) - #define __LITTLE_ENDIAN__ 1 + #define __LITTLE_ENDIAN__ 1 #endif // !defined(__LITTLE_ENDIAN__) && !defined(__BIG_ENDIAN__) #endif // defined(Linux) @@ -46,7 +46,7 @@ // gcc on Mac OS X #if defined(__GNUC__) && ( defined(__APPLE_CPP__) || defined(__APPLE_CC__) || defined(__MACOS_CLASSIC__) ) #include - + #if defined(TARGET_RT_LITTLE_ENDIAN) && TARGET_RT_LITTLE_ENDIAN #if !defined(__LITTLE_ENDIAN__) #define __LITTLE_ENDIAN__