summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 845886a)
raw | patch | inline | side by side (parent: 845886a)
author | Florian Forster <octo@noris.net> | |
Fri, 21 Nov 2008 16:42:37 +0000 (17:42 +0100) | ||
committer | Florian Forster <octo@noris.net> | |
Fri, 21 Nov 2008 16:42:37 +0000 (17:42 +0100) |
Some systems, for example Solaris 9, don't have <stdint.h> and define
`uint32_t' via <inttypes.h> instead. Be more permissive by including
both header files when checking how doubles are stored in memory.
`uint32_t' via <inttypes.h> instead. Be more permissive by including
both header files when checking how doubles are stored in memory.
configure.in | patch | blob | history |
diff --git a/configure.in b/configure.in
index 21af0b5453c0eca539656628471e261fc50abb12..98e9fdead7cdbdc8802a3009778807e72c80534b 100644 (file)
--- a/configure.in
+++ b/configure.in
[[[[
#include <stdlib.h>
#include <stdio.h>
-#include <stdint.h>
#include <string.h>
+#if HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#if HAVE_STDBOOL_H
+# include <stdbool.h>
+#endif
]]]],
[[[[
uint64_t i0;
[[[[
#include <stdlib.h>
#include <stdio.h>
-#include <stdint.h>
#include <string.h>
+#if HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#if HAVE_STDBOOL_H
+# include <stdbool.h>
+#endif
#define endianflip(A) ((((uint64_t)(A) & 0xff00000000000000LL) >> 56) | \
(((uint64_t)(A) & 0x00ff000000000000LL) >> 40) | \
(((uint64_t)(A) & 0x0000ff0000000000LL) >> 24) | \
[[[[
#include <stdlib.h>
#include <stdio.h>
-#include <stdint.h>
#include <string.h>
+#if HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#if HAVE_STDBOOL_H
+# include <stdbool.h>
+#endif
#define intswap(A) ((((uint64_t)(A) & 0xffffffff00000000LL) >> 32) | \
(((uint64_t)(A) & 0x00000000ffffffffLL) << 32))
]]]],