CheckAtomic.cmake: Put all C++ code inside CHECK_CXX_SOURCE_COMPILES.

llvm-svn: 90685
This commit is contained in:
Oscar Fuentes 2009-12-06 00:06:33 +00:00
parent 7e28c5f2e2
commit 58eea20f47
1 changed files with 1 additions and 2 deletions

View File

@ -2,11 +2,10 @@
INCLUDE(CheckCXXSourceCompiles) INCLUDE(CheckCXXSourceCompiles)
CHECK_CXX_SOURCE_COMPILES("
#ifdef _MSC_VER #ifdef _MSC_VER
#include <windows.h> #include <windows.h>
#endif #endif
CHECK_CXX_SOURCE_COMPILES("
int main() { int main() {
#ifdef _MSC_VER #ifdef _MSC_VER
volatile LONG val = 1; volatile LONG val = 1;