diff options
author | Hans Wennborg <hans@hanshq.net> | 2013-05-02 13:12:32 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2013-05-02 13:12:32 +0000 |
commit | 4c02be3b836c2c2aece0490bdac6c45d5732987c (patch) | |
tree | a42cbf432d55ad00cff10c692949994601b1b1da /clang/lib/Headers | |
parent | b2175b25a7525fbf6c347fcee62505ed45618026 (diff) | |
download | bcm5719-llvm-4c02be3b836c2c2aece0490bdac6c45d5732987c.tar.gz bcm5719-llvm-4c02be3b836c2c2aece0490bdac6c45d5732987c.zip |
Make sure we define wchar_t related macros correctly in -fms-extensions mode.
This adds a test to make sure we define _WCHAR_T_DEFINED and
_NATIVE_WCHAR_T_DEFINED correctly in the preprocessor, and updates
stddef.h to set it when typedeffing wchar_t.
llvm-svn: 180918
Diffstat (limited to 'clang/lib/Headers')
-rw-r--r-- | clang/lib/Headers/stddef.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Headers/stddef.h b/clang/lib/Headers/stddef.h index 0c5c961d5e2..6a64d6d32a8 100644 --- a/clang/lib/Headers/stddef.h +++ b/clang/lib/Headers/stddef.h @@ -58,6 +58,9 @@ typedef __SIZE_TYPE__ rsize_t; #if !defined(_WCHAR_T) || __has_feature(modules) #if !__has_feature(modules) #define _WCHAR_T +#if defined(_MSC_EXTENSIONS) +#define _WCHAR_T_DEFINED +#endif #endif typedef __WCHAR_TYPE__ wchar_t; #endif |