X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Felf.h;h=a9839df3f2bdc74bce5e0f89f275c26fd1bd098a;hb=3405f38a15eec5092ac47efe0829f10a24491c6e;hp=1be294a945c5c0afa407860ac748998defb7006e;hpb=8bde7f776c77b343aca29b8c7b58464d915ac245;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/elf.h b/include/elf.h index 1be294a..a9839df 100644 --- a/include/elf.h +++ b/include/elf.h @@ -41,15 +41,13 @@ #include #elif defined(__linux__) && defined(USE_HOSTCC) #include +#elif defined(__WIN32__) +#include +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; #endif -#ifdef __CYGWIN__ -#include -typedef unsigned long int uint32_t; -typedef unsigned short uint16_t; -typedef unsigned char uint8_t; -#endif /* __CYGWIN__ */ - /* * This version doesn't work for 64-bit ABIs - Erik. */ @@ -417,7 +415,7 @@ typedef struct /* Extract relocation info - r_info */ #define ELF32_R_SYM(i) ((i) >> 8) #define ELF32_R_TYPE(i) ((unsigned char) (i)) -#define ELF32_R_INFO(s,t) (((s) << 8) + (unsigned char)(t)) +#define ELF32_R_INFO(s,t) (((s) << 8) + (unsigned char)(t)) /* Program Header */ typedef struct {