]> granicus.if.org Git - clang/commitdiff
Make test header independent so it doesn't fail on freebsd. I hope this doesn't
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 17 Nov 2009 14:02:16 +0000 (14:02 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 17 Nov 2009 14:02:16 +0000 (14:02 +0000)
hurt the intention of the test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89096 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/wchar.c

index 9976aa8bb45de182141627ec2a4871e31ba2146a..e201c7e49144ac6593306442031d23892529720e 100644 (file)
@@ -1,8 +1,8 @@
 // RUN: clang %s -fsyntax-only -Xclang -verify
 // RUN: clang %s -fsyntax-only -fshort-wchar -Xclang -verify -DSHORT_WCHAR
-#include <wchar.h>
+
+typedef __WCHAR_TYPE__ wchar_t;
+
 #if defined(_WIN32) || defined(_M_IX86) || defined(__CYGWIN__) \
  || defined(_M_X64) || defined(SHORT_WCHAR)
   #define WCHAR_T_TYPE unsigned short