diff options
Diffstat (limited to 'unittests/gtest_common.h')
-rw-r--r-- | unittests/gtest_common.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/unittests/gtest_common.h b/unittests/gtest_common.h new file mode 100644 index 000000000000..006c9596ca4f --- /dev/null +++ b/unittests/gtest_common.h @@ -0,0 +1,24 @@ +//===-- gtest_common.h ------------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#if defined(LLDB_GTEST_COMMON_H) +#error "gtest_common.h should not be included manually." +#else +#define LLDB_GTEST_COMMON_H +#endif + +// This header file is force included by all of LLDB's unittest compilation +// units. Be very leary about putting anything in this file. + +#if defined(_MSC_VER) && (_HAS_EXCEPTIONS == 0) +// Due to a bug in <thread>, when _HAS_EXCEPTIONS == 0 the header will try to call +// uncaught_exception() without having a declaration for it. The fix for this is +// to manually #include <eh.h>, which contains this declaration. +#include <eh.h> +#endif |