]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Use __int64 for int64_t default on Windows
authorBrad King <brad.king@kitware.com>
Wed, 11 Nov 2009 14:19:08 +0000 (09:19 -0500)
committerBrad King <brad.king@kitware.com>
Wed, 11 Nov 2009 14:19:08 +0000 (09:19 -0500)
Many windows compilers define __int64 as a 64-bit type, not just MSVC.

SVN-Revision: 1631

CMakeLists.txt

index abebb90a6c1ff650ea0b9d419fda1995f240d652..c609fbef3a75770fee399ea7a8cddd716d70e4e7 100644 (file)
@@ -501,9 +501,9 @@ ENDIF(NOT HAVE_INT32_T)
 #
 CHECK_TYPE_SIZE(int64_t     INT64_T)
 IF(NOT HAVE_INT64_T)
-  IF(MSVC)
+  IF(WIN32)
     SET(int64_t __int64)
-  ENDIF(MSVC)
+  ENDIF(WIN32)
 ENDIF(NOT HAVE_INT64_T)
 #
 CHECK_TYPE_SIZE(intmax_t    INTMAX_T)
@@ -566,9 +566,9 @@ ENDIF(NOT HAVE_UINT32_T)
 #
 CHECK_TYPE_SIZE(uint64_t    UINT64_T)
 IF(NOT HAVE_UINT64_T)
-  IF(MSVC)
+  IF(WIN32)
     SET(uint64_t "unsigned __int64")
-  ENDIF(MSVC)
+  ENDIF(WIN32)
 ENDIF(NOT HAVE_UINT64_T)
 #
 CHECK_TYPE_SIZE(uintmax_t   UINTMAX_T)