summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2009-11-17 14:02:16 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2009-11-17 14:02:16 +0000
commit947e00db0767596711f8571a5d276269043a2331 (patch)
treea262ea6bb21ce21a378ae9d681b3b88daca1b872
parent6ab25f482c6df53caf7a225028dc8bb7d12f0206 (diff)
downloadclang-947e00db0767596711f8571a5d276269043a2331.tar.gz
clang-947e00db0767596711f8571a5d276269043a2331.tar.bz2
clang-947e00db0767596711f8571a5d276269043a2331.tar.xz
Make test header independent so it doesn't fail on freebsd. I hope this doesn't
hurt the intention of the test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89096 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Sema/wchar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Sema/wchar.c b/test/Sema/wchar.c
index 9976aa8bb4..e201c7e491 100644
--- a/test/Sema/wchar.c
+++ b/test/Sema/wchar.c
@@ -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