From: linear cannon Date: Sun, 19 Dec 2021 08:25:57 +0000 (-0800) Subject: update CMake sizeof definitions to match autotools X-Git-Tag: v3.6.0~31^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1641%2Fhead;p=thirdparty%2Flibarchive.git update CMake sizeof definitions to match autotools --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 6dfdf966b..a344a07f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1548,15 +1548,15 @@ CHECK_STRUCT_HAS_MEMBER("struct tm" tm_sec # Check for integer types # # -CHECK_TYPE_SIZE("short" SIZE_OF_SHORT) -CHECK_TYPE_SIZE("int" SIZE_OF_INT) -CHECK_TYPE_SIZE("long" SIZE_OF_LONG) -CHECK_TYPE_SIZE("long long" SIZE_OF_LONG_LONG) - -CHECK_TYPE_SIZE("unsigned short" SIZE_OF_UNSIGNED_SHORT) -CHECK_TYPE_SIZE("unsigned" SIZE_OF_UNSIGNED) -CHECK_TYPE_SIZE("unsigned long" SIZE_OF_UNSIGNED_LONG) -CHECK_TYPE_SIZE("unsigned long long" SIZE_OF_UNSIGNED_LONG_LONG) +CHECK_TYPE_SIZE("short" SIZEOF_SHORT) +CHECK_TYPE_SIZE("int" SIZEOF_INT) +CHECK_TYPE_SIZE("long" SIZEOF_LONG) +CHECK_TYPE_SIZE("long long" SIZEOF_LONG_LONG) + +CHECK_TYPE_SIZE("unsigned short" SIZEOF_UNSIGNED_SHORT) +CHECK_TYPE_SIZE("unsigned" SIZEOF_UNSIGNED) +CHECK_TYPE_SIZE("unsigned long" SIZEOF_UNSIGNED_LONG) +CHECK_TYPE_SIZE("unsigned long long" SIZEOF_UNSIGNED_LONG_LONG) CHECK_TYPE_SIZE("__int64" __INT64) CHECK_TYPE_SIZE("unsigned __int64" UNSIGNED___INT64) diff --git a/build/cmake/config.h.in b/build/cmake/config.h.in index 5ddd2f338..37fc7cfac 100644 --- a/build/cmake/config.h.in +++ b/build/cmake/config.h.in @@ -23,14 +23,14 @@ #cmakedefine HAVE_UNSIGNED___INT64 /* The sizes of various standard integer types. */ -@SIZE_OF_SHORT_CODE@ -@SIZE_OF_INT_CODE@ -@SIZE_OF_LONG_CODE@ -@SIZE_OF_LONG_LONG_CODE@ -@SIZE_OF_UNSIGNED_SHORT_CODE@ -@SIZE_OF_UNSIGNED_CODE@ -@SIZE_OF_UNSIGNED_LONG_CODE@ -@SIZE_OF_UNSIGNED_LONG_LONG_CODE@ +@SIZEOF_SHORT_CODE@ +@SIZEOF_INT_CODE@ +@SIZEOF_LONG_CODE@ +@SIZEOF_LONG_LONG_CODE@ +@SIZEOF_UNSIGNED_SHORT_CODE@ +@SIZEOF_UNSIGNED_CODE@ +@SIZEOF_UNSIGNED_LONG_CODE@ +@SIZEOF_UNSIGNED_LONG_LONG_CODE@ /* * If we lack int64_t, define it to the first of __int64, int, long, and long long @@ -41,17 +41,17 @@ typedef __int64 int64_t; #define HAVE_INT64_T #endif -#if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8 +#if !defined(HAVE_INT64_T) && SIZEOF_INT == 8 typedef int int64_t; #define HAVE_INT64_T #endif -#if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8 +#if !defined(HAVE_INT64_T) && SIZEOF_LONG == 8 typedef long int64_t; #define HAVE_INT64_T #endif -#if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8 +#if !defined(HAVE_INT64_T) && SIZEOF_LONG_LONG == 8 typedef long long int64_t; #define HAVE_INT64_T #endif @@ -63,12 +63,12 @@ typedef long long int64_t; /* * Similarly for int32_t */ -#if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4 +#if !defined(HAVE_INT32_T) && SIZEOF_INT == 4 typedef int int32_t; #define HAVE_INT32_T #endif -#if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4 +#if !defined(HAVE_INT32_T) && SIZEOF_LONG == 4 typedef long int32_t; #define HAVE_INT32_T #endif @@ -80,12 +80,12 @@ typedef long int32_t; /* * Similarly for int16_t */ -#if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2 +#if !defined(HAVE_INT16_T) && SIZEOF_INT == 2 typedef int int16_t; #define HAVE_INT16_T #endif -#if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2 +#if !defined(HAVE_INT16_T) && SIZEOF_SHORT == 2 typedef short int16_t; #define HAVE_INT16_T #endif @@ -102,17 +102,17 @@ typedef unsigned __int64 uint64_t; #define HAVE_UINT64_T #endif -#if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8 +#if !defined(HAVE_UINT64_T) && SIZEOF_UNSIGNED == 8 typedef unsigned uint64_t; #define HAVE_UINT64_T #endif -#if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8 +#if !defined(HAVE_UINT64_T) && SIZEOF_UNSIGNED_LONG == 8 typedef unsigned long uint64_t; #define HAVE_UINT64_T #endif -#if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8 +#if !defined(HAVE_UINT64_T) && SIZEOF_UNSIGNED_LONG_LONG == 8 typedef unsigned long long uint64_t; #define HAVE_UINT64_T #endif @@ -125,12 +125,12 @@ typedef unsigned long long uint64_t; /* * Similarly for uint32_t */ -#if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4 +#if !defined(HAVE_UINT32_T) && SIZEOF_UNSIGNED == 4 typedef unsigned uint32_t; #define HAVE_UINT32_T #endif -#if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4 +#if !defined(HAVE_UINT32_T) && SIZEOF_UNSIGNED_LONG == 4 typedef unsigned long uint32_t; #define HAVE_UINT32_T #endif @@ -142,12 +142,12 @@ typedef unsigned long uint32_t; /* * Similarly for uint16_t */ -#if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2 +#if !defined(HAVE_UINT16_T) && SIZEOF_UNSIGNED == 2 typedef unsigned uint16_t; #define HAVE_UINT16_T #endif -#if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2 +#if !defined(HAVE_UINT16_T) && SIZEOF_UNSIGNED_SHORT == 2 typedef unsigned short uint16_t; #define HAVE_UINT16_T #endif