]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
elf.h: Use stdint.h to provide standard typedefs for WIN32
authorPeter Tyser <ptyser@xes-inc.com>
Fri, 13 Mar 2009 23:54:28 +0000 (18:54 -0500)
committerWolfgang Denk <wd@denx.de>
Fri, 3 Apr 2009 23:06:16 +0000 (01:06 +0200)
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>
include/elf.h

index a9839df3f2bdc74bce5e0f89f275c26fd1bd098a..f6403881bff19f5f7d4ae09308ef0a14fc92c5ce 100644 (file)
     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
 
 /*