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 ec99766e2e
commit e1f5d048d7

View File

@ -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;