Просмотр исходного кода

BUG: make sure this thing compiles on 64 bit machines

Bill Hoffman 18 лет назад
Родитель
Сommit
0c7130905d
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      Modules/CMakeCXXCompilerId.cpp

+ 5 - 1
Modules/CMakeCXXCompilerId.cpp

@@ -48,5 +48,9 @@ static char const info_compiler[] = "INFO:compiler["
 /* Make sure the information strings are referenced.  */
 int main()
 {
-  return ((int)&info_compiler) + ((int)&info_platform);
+  if(&info_compiler[0] != &info_platform[0])
+    {
+    return 1;
+    }
+  return 0;
 }