summaryrefslogtreecommitdiff
path: root/include/apr.h.in
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2019-03-22 12:23:52 +0000
committerYann Ylavic <ylavic@apache.org>2019-03-22 12:23:52 +0000
commitda195e8db0e7c52da2225e256d381c15396d9b5c (patch)
treef660ed180e625a42370f980964577a398d0a2df7 /include/apr.h.in
parentdf292974b3de981d10d68dee1484742f694d3978 (diff)
downloadapr-da195e8db0e7c52da2225e256d381c15396d9b5c.tar.gz
Don't mangle Darwin's native [U]INT64_C macros.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1856043 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr.h.in')
-rw-r--r--include/apr.h.in20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/apr.h.in b/include/apr.h.in
index 130f162b5..e7193d77b 100644
--- a/include/apr.h.in
+++ b/include/apr.h.in
@@ -365,24 +365,28 @@ typedef unsigned @int_value@ apr_uint32_t;
*/
#ifdef DARWIN_10
#undef APR_SIZEOF_VOIDP
-#undef INT64_C
-#undef UINT64_C
+#undef APR_INT64_C
+#undef APR_UINT64_C
#ifdef __LP64__
typedef long apr_int64_t;
typedef unsigned long apr_uint64_t;
#define APR_SIZEOF_VOIDP 8
- #define INT64_C(v) (v ## L)
- #define UINT64_C(v) (v ## UL)
+ #define APR_INT64_C(v) (v ## L)
+ #define APR_UINT64_C(v) (v ## UL)
#else
typedef long long apr_int64_t;
typedef unsigned long long apr_uint64_t;
#define APR_SIZEOF_VOIDP 4
- #define INT64_C(v) (v ## LL)
- #define UINT64_C(v) (v ## ULL)
+ #define APR_INT64_C(v) (v ## LL)
+ #define APR_UINT64_C(v) (v ## ULL)
#endif
#else
typedef @int64_value@ apr_int64_t;
typedef @uint64_value@ apr_uint64_t;
+
+ /* Mechanisms to properly type numeric literals */
+ @int64_literal@
+ @uint64_literal@
#endif
typedef @size_t_value@ apr_size_t;
@@ -402,10 +406,6 @@ typedef apr_int32_t apr_intptr_t;
/* Are we big endian? */
#define APR_IS_BIGENDIAN @bigendian@
-/* Mechanisms to properly type numeric literals */
-@int64_literal@
-@uint64_literal@
-
#ifdef INT16_MIN
#define APR_INT16_MIN INT16_MIN
#else