summaryrefslogtreecommitdiff
path: root/include/elf.h
diff options
context:
space:
mode:
authorPeter Tyser <ptyser@xes-inc.com>2009-03-13 23:54:28 (GMT)
committerWolfgang Denk <wd@denx.de>2009-04-03 23:06:16 (GMT)
commit24d2ae5e9debe4b75151a55251031a14477fa875 (patch)
treede80d87df606702ed5090fbc6c2ca90a083f34cc /include/elf.h
parenta706bfc7d0e2d1935c5670045288e6cd1ffdfabc (diff)
downloadu-boot-24d2ae5e9debe4b75151a55251031a14477fa875.tar.xz
elf.h: Use stdint.h to provide standard typedefs for WIN32
The original code provided an incomplete set of typedefs for WIN32 compiles and replicated the standard typedefs that are already provided by stdint.h Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Diffstat (limited to 'include/elf.h')
-rw-r--r--include/elf.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/elf.h b/include/elf.h
index a9839df..f640388 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -39,13 +39,8 @@
defined(__sun__) || \
defined(__APPLE__)
#include <inttypes.h>
-#elif defined(__linux__) && defined(USE_HOSTCC)
+#elif (defined(__linux__) && defined(USE_HOSTCC)) || defined(__WIN32__)
#include <stdint.h>
-#elif defined(__WIN32__)
-#include <unistd.h>
-typedef unsigned char uint8_t;
-typedef unsigned short uint16_t;
-typedef unsigned int uint32_t;
#endif
/*