summaryrefslogtreecommitdiffstats
path: root/Utilities/cmexpat/lib
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-06-20 12:52:02 (GMT)
committerBrad King <brad.king@kitware.com>2017-06-20 12:55:48 (GMT)
commitd5afb178f1829fc5fd9332f70986b95ab62aedcc (patch)
tree0c31da6c615c67690e9894cdf251f5296c0dfc9f /Utilities/cmexpat/lib
parent0a40c668f5bd60e68cde3fc7803aec2611f6c1c3 (diff)
downloadCMake-d5afb178f1829fc5fd9332f70986b95ab62aedcc.zip
CMake-d5afb178f1829fc5fd9332f70986b95ab62aedcc.tar.gz
CMake-d5afb178f1829fc5fd9332f70986b95ab62aedcc.tar.bz2
expat: Fix compilation on systems without stdint.h
Diffstat (limited to 'Utilities/cmexpat/lib')
-rw-r--r--Utilities/cmexpat/lib/siphash.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/Utilities/cmexpat/lib/siphash.h b/Utilities/cmexpat/lib/siphash.h
index 23b56d2..db17458 100644
--- a/Utilities/cmexpat/lib/siphash.h
+++ b/Utilities/cmexpat/lib/siphash.h
@@ -76,8 +76,18 @@
#define SIPHASH_H
#include <stddef.h> /* size_t */
-#include <stdint.h> /* uint64_t uint32_t uint8_t */
+#include <cm_kwiml.h>
+
+#ifndef KWIML_INT_HAVE_UINT64_T
+# define uint64_t KWIML_INT_uint64_t
+#endif
+#ifndef KWIML_INT_HAVE_UINT32_T
+# define uint32_t KWIML_INT_uint32_t
+#endif
+#ifndef KWIML_INT_HAVE_UINT8_T
+# define uint8_t KWIML_INT_uint8_t
+#endif
#define SIP_ROTL(x, b) (uint64_t)(((x) << (b)) | ( (x) >> (64 - (b))))