summaryrefslogtreecommitdiffstats
path: root/Utilities/cmliblzma/config.h.in
diff options
context:
space:
mode:
authorChuck Atkins <chuck.atkins@kitware.com>2014-11-03 19:37:12 (GMT)
committerChuck Atkins <chuck.atkins@kitware.com>2014-11-03 19:37:12 (GMT)
commit996f822930b02fbf6f7b1bc2fa21ad52b10ebdcd (patch)
tree51c604821d1594e9b519da860f9a9b86b14ba796 /Utilities/cmliblzma/config.h.in
parent40bab8d17b18ca5e6864bf282326507c59826021 (diff)
downloadCMake-996f822930b02fbf6f7b1bc2fa21ad52b10ebdcd.zip
CMake-996f822930b02fbf6f7b1bc2fa21ad52b10ebdcd.tar.gz
CMake-996f822930b02fbf6f7b1bc2fa21ad52b10ebdcd.tar.bz2
liblzma: fix build on platforms with no SIZE_MAX defined.
Some systems don't define a SIZE_MAX (older versions of HP-UX with aCC). The logic was already in place to account for this condition but SIZEOF_SIZE_T was not getting cmoputed at configure time to allow it to function. This computes sizeof(size_t) at configure time to allow the appropriate logic to work. It also changes SIZEOF_SIZE_T to SIZE_OF_SIZE_T for consistency.
Diffstat (limited to 'Utilities/cmliblzma/config.h.in')
-rw-r--r--Utilities/cmliblzma/config.h.in4
1 files changed, 1 insertions, 3 deletions
diff --git a/Utilities/cmliblzma/config.h.in b/Utilities/cmliblzma/config.h.in
index b197f27..017c435 100644
--- a/Utilities/cmliblzma/config.h.in
+++ b/Utilities/cmliblzma/config.h.in
@@ -29,6 +29,7 @@
@SIZE_OF_UNSIGNED_CODE@
@SIZE_OF_UNSIGNED_LONG_CODE@
@SIZE_OF_UNSIGNED_LONG_LONG_CODE@
+@SIZE_OF_SIZE_T_CODE@
/*
* If we lack int64_t, define it to the first of __int64, int, long, and long long
@@ -277,9 +278,6 @@ typedef uint64_t uintmax_t;
/* Define to 1 if the system has the type `_Bool'. */
#cmakedefine HAVE__BOOL 1
-/* The size of `size_t', as computed by sizeof. */
-#cmakedefine SIZEOF_SIZE_T @SIZEOF_SIZE_T@
-
/* Define to 1 if the system supports fast unaligned access to 16-bit and
32-bit integers. */
#define TUKLIB_FAST_UNALIGNED_ACCESS 1