Explorar o código

BUG: make sure this thing compiles on 64 bit machines

Bill Hoffman %!s(int64=18) %!d(string=hai) anos
pai
achega
0c7130905d
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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;
 }