This reverts r360271 (git commit
a0933bd8ec1515167ea653f7ee788b8bbde27d51)
There are concerns on the review that this breaks EFI builds and that
the transitive includes (sal.h) are actually heavy enough that we might
care.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360291
91177308-0d34-0410-b5e6-
96231b3b80d8
#ifndef __STDARG_H
#define __STDARG_H
-#if defined(_MSC_VER)
-/* Include otherwise unneeded header for MSVC compatibility. */
-#include <vcruntime.h>
-#endif
-
#ifndef _VA_LIST
typedef __builtin_va_list va_list;
#define _VA_LIST
#if !__has_feature(modules)
#define __STDDEF_H
#endif
-
-#if defined(_MSC_VER)
-/* Include otherwise unneeded header for MSVC compatibility. */
-#include <corecrt.h>
-#endif
-
#define __need_ptrdiff_t
#define __need_size_t
#define __need_wchar_t
+++ /dev/null
-#pragma once
-
-double sqrt(double);
-double pow(double, double);
-double modf(double, double*);
+++ /dev/null
-#pragma once
-
-#define complex _Complex
+++ /dev/null
-#pragma once
-
-namespace std
-{
-struct __numeric_limits_base
- {};
-template<typename _Tp>
- struct numeric_limits : public __numeric_limits_base
- {};
-}
+++ /dev/null
-#pragma once
-
-double sqrt(double);
-double pow(double, double);
-double modf(double, double*);
+++ /dev/null
-#ifndef SETJMP_H
-#define SETJMP_H
-
-typedef struct {
- int x[42];
-} jmp_buf;
-
-#endif
+++ /dev/null
-#ifndef STDINT_H
-#define STDINT_H
-
-#ifdef __INT32_TYPE__
-typedef unsigned __INT32_TYPE__ uint32_t;
-#endif
-
-#ifdef __INT64_TYPE__
-typedef unsigned __INT64_TYPE__ uint64_t;
-#endif
-
-#ifdef __INTPTR_TYPE__
-typedef __INTPTR_TYPE__ intptr_t;
-typedef unsigned __INTPTR_TYPE__ uintptr_t;
-#else
-#error Every target should have __INTPTR_TYPE__
-#endif
-
-#endif /* STDINT_H */
+++ /dev/null
-#pragma once
-typedef __SIZE_TYPE__ size_t;
+++ /dev/null
-#pragma once
+++ /dev/null
-#pragma once
+++ /dev/null
-#ifndef SYSFLOAT_H
-#define SYSFLOAT_H
-
-#define FLT_HAS_SUBNORM 1
-
-#endif /* SYSFLOAT_H */
+++ /dev/null
-#ifndef SYS_TGMATH_H
-#define SYS_TGMATH_H
-
-#endif /* SYS_TGMATH_H */
// RUN: %clang_cc1 -fsyntax-only -verify -std=c11 %s
// RUN: %clang_cc1 -fsyntax-only -verify -std=c11 -fmodules -fmodules-cache-path=%t %s -D__STDC_WANT_LIB_EXT1__=1
// RUN: %clang_cc1 -fsyntax-only -verify -std=c11 -ffreestanding %s
-// RUN: %clang_cc1 -fsyntax-only -verify -std=c11 -triple i686-pc-win32 \
-// RUN: -fms-compatibility-version=17.00 -isystem %S/Inputs/ms-crt %s
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c11 -triple i686-pc-win32 -fms-compatibility-version=17.00 %s
noreturn int f(); // expected-error 1+{{}}
+++ /dev/null
-// RUN: %clang_cc1 -fsyntax-only --show-includes -triple i686-pc-win32 \
-// RUN: -isystem %S/Inputs/ms-crt -fms-compatibility-version=17.00 %s \
-// RUN: | FileCheck %s
-
-#include <stddef.h>
-// CHECK: including file:{{.*}}stddef.h
-// CHECK: including file:{{.*}}corecrt.h
-#include <stdarg.h>
-// CHECK: including file:{{.*}}stdarg.h
-// CHECK: including file:{{.*}}vcruntime.h
-// RUN: %clang_cc1 -fsyntax-only -triple i686-pc-win32 -fms-compatibility \
-// RUN: -isystem %S/Inputs/ms-crt -fms-compatibility-version=17.00 %s
+// RUN: %clang_cc1 -fsyntax-only -triple i686-pc-win32 -fms-compatibility -fms-compatibility-version=17.00 %s
// RUN: %clang_cc1 -fsyntax-only -triple i386-mingw32 %s
// Something in MSVC's headers (pulled in e.g. by <crtdefs.h>) defines __null