浏览代码

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>
Peter Tyser 16 年之前
父节点
当前提交
24d2ae5e9d
共有 1 个文件被更改,包括 1 次插入6 次删除
  1. 1 6
      include/elf.h

+ 1 - 6
include/elf.h

@@ -39,13 +39,8 @@
     defined(__sun__)	 || \
     defined(__sun__)	 || \
     defined(__APPLE__)
     defined(__APPLE__)
 #include <inttypes.h>
 #include <inttypes.h>
-#elif defined(__linux__) && defined(USE_HOSTCC)
+#elif (defined(__linux__) && defined(USE_HOSTCC)) || defined(__WIN32__)
 #include <stdint.h>
 #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
 #endif
 
 
 /*
 /*