From b26913ef0ef10a2ff9a585b0a255175fca83099c Mon Sep 17 00:00:00 2001 From: darylm503 Date: Thu, 29 Mar 2012 22:24:30 +0000 Subject: [PATCH] StdLib: Add STDC macros, for MSFT compilers, to improve compatibility with various Open-Source software packages. Defines __STDC__, __STDC_VERSION__, and __STDC_HOSTED as specified by ISO/IEC 9899. Signed-off-by: daryl.mcdaniel@intel.com Reviewed-by: jordan.l.justen@intel.com git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13153 6f19259b-4bc3-4df7-8a09-765794883524 --- StdLib/Include/sys/EfiCdefs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/StdLib/Include/sys/EfiCdefs.h b/StdLib/Include/sys/EfiCdefs.h index be114ddbe4..c436ff3659 100644 --- a/StdLib/Include/sys/EfiCdefs.h +++ b/StdLib/Include/sys/EfiCdefs.h @@ -336,6 +336,11 @@ // Keep compiler quiet about casting from smaller to larger types #pragma warning ( disable : 4306 ) + + #define __STDC__ 1 + #define __STDC_VERSION__ 199409L + #define __STDC_HOSTED__ 1 + #endif /* defined(_MSC_VER) */ extern int _fltused; // VC++ requires this if you use floating point. KEEP for all compilers.