فهرست منبع

BUG: make sure this thing compiles on 64 bit machines

Bill Hoffman 18 سال پیش
والد
کامیت
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;
 }