From: David Woodhouse Date: Mon, 22 Feb 2016 16:54:57 +0000 (+0000) Subject: RT4334: Check UEFI before __STDC_VERSION__ for X-Git-Tag: OpenSSL_1_1_0-pre4~546 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cbb259caaf2cabf9bedc35fd41ba84f048a3de0f;p=openssl RT4334: Check UEFI before __STDC_VERSION__ for Adding -nostdinc to the EDK2 showed that we were including for some UEFI builds, because the check for __STDC_VERSION__ happens before the check for OPENSSL_SYS_UEFI. Fix that. Signed-off-by: Rich Salz Reviewed-by: Tim Hudson --- diff --git a/include/openssl/e_os2.h b/include/openssl/e_os2.h index b66b1cc794..ba3345a025 100644 --- a/include/openssl/e_os2.h +++ b/include/openssl/e_os2.h @@ -286,11 +286,7 @@ extern "C" { # endif /* Standard integer types */ -# if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \ - defined(__osf__) || defined(__sgi) || defined(__hpux) || \ - defined(OPENSSL_SYS_VMS) -# include -# elif defined(OPENSSL_SYS_UEFI) +# if defined(OPENSSL_SYS_UEFI) typedef INT8 int8_t; typedef UINT8 uint8_t; typedef INT16 int16_t; @@ -299,7 +295,11 @@ typedef INT32 int32_t; typedef UINT32 uint32_t; typedef INT64 int64_t; typedef UINT64 uint64_t; -#define PRIu64 "%Lu" +# define PRIu64 "%Lu" +# elif (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \ + defined(__osf__) || defined(__sgi) || defined(__hpux) || \ + defined(OPENSSL_SYS_VMS) +# include # elif defined(_MSC_VER) && _MSC_VER<=1500 /* * minimally required typdefs for systems not supporting inttypes.h or