diff options
author | Chuck Atkins <chuck.atkins@kitware.com> | 2014-11-03 19:37:12 (GMT) |
---|---|---|
committer | Chuck Atkins <chuck.atkins@kitware.com> | 2014-11-03 19:37:12 (GMT) |
commit | 996f822930b02fbf6f7b1bc2fa21ad52b10ebdcd (patch) | |
tree | 51c604821d1594e9b519da860f9a9b86b14ba796 /Utilities/cmliblzma/common | |
parent | 40bab8d17b18ca5e6864bf282326507c59826021 (diff) | |
download | CMake-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/common')
-rw-r--r-- | Utilities/cmliblzma/common/sysdefs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/cmliblzma/common/sysdefs.h b/Utilities/cmliblzma/common/sysdefs.h index c84f01c..a6edea8 100644 --- a/Utilities/cmliblzma/common/sysdefs.h +++ b/Utilities/cmliblzma/common/sysdefs.h @@ -124,9 +124,9 @@ // The code currently assumes that size_t is either 32-bit or 64-bit. #ifndef SIZE_MAX -# if SIZEOF_SIZE_T == 4 +# if SIZE_OF_SIZE_T == 4 # define SIZE_MAX UINT32_MAX -# elif SIZEOF_SIZE_T == 8 +# elif SIZE_OF_SIZE_T == 8 # define SIZE_MAX UINT64_MAX # else # error size_t is not 32-bit or 64-bit |