r190979 - Avoid including <stdlib.h> in the intrin.h test
Reid Kleckner
reid at kleckner.net
Wed Sep 18 17:32:11 PDT 2013
Author: rnk
Date: Wed Sep 18 19:32:11 2013
New Revision: 190979
URL: http://llvm.org/viewvc/llvm-project?rev=190979&view=rev
Log:
Avoid including <stdlib.h> in the intrin.h test
Modified:
cfe/trunk/test/Headers/ms-intrin.cpp
Modified: cfe/trunk/test/Headers/ms-intrin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/ms-intrin.cpp?rev=190979&r1=190978&r2=190979&view=diff
==============================================================================
--- cfe/trunk/test/Headers/ms-intrin.cpp (original)
+++ cfe/trunk/test/Headers/ms-intrin.cpp Wed Sep 18 19:32:11 2013
@@ -1,5 +1,10 @@
// RUN: %clang -target i386-pc-win32 -fms-extensions -fsyntax-only %s
+// Get size_t, but avoid including mm_malloc.h which includes stdlib.h which may
+// not exist.
+#include <stdint.h>
+#undef __STDC_HOSTED__
+
#include <Intrin.h>
template <typename T>
More information about the cfe-commits
mailing list