]> granicus.if.org Git - clang/commit
Make sure we define wchar_t related macros correctly in -fms-extensions mode.
authorHans Wennborg <hans@hanshq.net>
Thu, 2 May 2013 13:12:32 +0000 (13:12 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 2 May 2013 13:12:32 +0000 (13:12 +0000)
commitc814c64c6f7e7a26f4af0d040ad04b69917a36c8
tree902da2bd581d7c2e97bffaf60e71cdd43586c886
parentde5ed04b08dcc23ac2caad282c372d541f60c6ee
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180918 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Headers/stddef.h
test/Headers/ms-wchar.c [new file with mode: 0644]
test/Preprocessor/init.c