forked from OSchip/llvm-project
CheckAtomic.cmake: Put all C++ code inside CHECK_CXX_SOURCE_COMPILES.
llvm-svn: 90685
This commit is contained in:
parent
7e28c5f2e2
commit
58eea20f47
|
@ -2,11 +2,10 @@
|
|||
|
||||
INCLUDE(CheckCXXSourceCompiles)
|
||||
|
||||
CHECK_CXX_SOURCE_COMPILES("
|
||||
#ifdef _MSC_VER
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
CHECK_CXX_SOURCE_COMPILES("
|
||||
int main() {
|
||||
#ifdef _MSC_VER
|
||||
volatile LONG val = 1;
|
||||
|
|
Loading…
Reference in New Issue