summaryrefslogtreecommitdiff
path: root/include/apr.hw
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-05-31 22:41:44 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-05-31 22:41:44 +0000
commit4ecc4ddf18c78f9ba036903cb5ae0154640dc6f2 (patch)
treed01fdef6069c98b057d9e1f764d00d58eb104913 /include/apr.hw
parent70e991ce642b0252aacc84816f6a2a8072ada210 (diff)
downloadlibapr-4ecc4ddf18c78f9ba036903cb5ae0154640dc6f2.tar.gz
Mingw specific defines:
ULL/LL [unsigned long long] for 64bits types pid_t is already defined PR: 33490/attachment 18103 Submitted by: Curt Arnold <carnold apache.org> Reviewed by: Davi Arnaut <davi haxent.com.br> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@543292 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr.hw')
-rw-r--r--include/apr.hw8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/apr.hw b/include/apr.hw
index 28c98976a..d00686e6c 100644
--- a/include/apr.hw
+++ b/include/apr.hw
@@ -359,15 +359,21 @@ typedef int apr_socklen_t;
/* XXX These simply don't belong here, perhaps in apr_portable.h
* based on some APR_HAVE_PID/GID/UID?
*/
+#ifndef __GNUC__
typedef int pid_t;
+#endif
typedef int uid_t;
typedef int gid_t;
/* Mechanisms to properly type numeric literals */
+#ifndef __GNUC__
#define APR_INT64_C(val) (val##i64)
#define APR_UINT64_C(val) (val##Ui64)
-
+#else
+#define APR_INT64_C(val) (val##LL)
+#define APR_UINT64_C(val) (val##ULL)
+#endif
#if APR_HAVE_IPV6