summaryrefslogtreecommitdiff
path: root/StdLib/Include/sys/EfiCdefs.h
diff options
context:
space:
mode:
authordarylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524>2012-03-29 22:24:30 +0000
committerdarylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524>2012-03-29 22:24:30 +0000
commitb26913ef0ef10a2ff9a585b0a255175fca83099c (patch)
treea385f1a944ee20d147f20bf77d17de054f4f7c1c /StdLib/Include/sys/EfiCdefs.h
parent1413b8e94b242913dcc294a6bdb3919d9347c3db (diff)
downloadedk2-platforms-b26913ef0ef10a2ff9a585b0a255175fca83099c.tar.xz
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
Diffstat (limited to 'StdLib/Include/sys/EfiCdefs.h')
-rw-r--r--StdLib/Include/sys/EfiCdefs.h5
1 files changed, 5 insertions, 0 deletions
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.