summaryrefslogtreecommitdiff
path: root/include/apr.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'include/apr.h.in')
-rw-r--r--include/apr.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/apr.h.in b/include/apr.h.in
index 3237d8ba0..929e19bce 100644
--- a/include/apr.h.in
+++ b/include/apr.h.in
@@ -116,6 +116,12 @@
#include <sys/socket.h>
#endif
+#if defined(__cplusplus) && !defined(__STDC_CONSTANT_MACROS)
+/* C99 7.18.4 requires that stdint.h only exposes INT64_C
+ * and UINT64_C for C++ implementations if this is defined: */
+#define __STDC_CONSTANT_MACROS
+#endif
+
#if APR_HAVE_STDINT_H
#include <stdint.h>
#endif