From: Brad King Date: Wed, 11 Nov 2009 14:19:08 +0000 (-0500) Subject: Use __int64 for int64_t default on Windows X-Git-Tag: v2.8.0~184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12eb9483901bb5587d47fb07726f2cf180f126f7;p=thirdparty%2Flibarchive.git Use __int64 for int64_t default on Windows Many windows compilers define __int64 as a 64-bit type, not just MSVC. SVN-Revision: 1631 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index abebb90a6..c609fbef3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)