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
This commit is contained in:
darylm503 2012-03-29 22:24:30 +00:00
parent 1413b8e94b
commit b26913ef0e
1 changed files with 5 additions and 0 deletions

View File

@ -336,6 +336,11 @@
// Keep compiler quiet about casting from smaller to larger types // Keep compiler quiet about casting from smaller to larger types
#pragma warning ( disable : 4306 ) #pragma warning ( disable : 4306 )
#define __STDC__ 1
#define __STDC_VERSION__ 199409L
#define __STDC_HOSTED__ 1
#endif /* defined(_MSC_VER) */ #endif /* defined(_MSC_VER) */
extern int _fltused; // VC++ requires this if you use floating point. KEEP for all compilers. extern int _fltused; // VC++ requires this if you use floating point. KEEP for all compilers.