summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-05-31 22:42:30 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-05-31 22:42:30 +0000
commit7cb87d3fae367a3f60787e85e3b8e9285e213f69 (patch)
tree6be1071218a9a0527c68b902c63bdbc6c21edad2
parent7f7f2e056c71cd892f2c0d1b02341dc641358c49 (diff)
downloadlibapr-7cb87d3fae367a3f60787e85e3b8e9285e213f69.tar.gz
Mingw specific defines:
LL [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> Backport: 543292 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@543294 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--include/apr.hw6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/apr.hw b/include/apr.hw
index 127b49bce..fec7d2d94 100644
--- a/include/apr.hw
+++ b/include/apr.hw
@@ -358,13 +358,19 @@ 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)
+#else
+#define APR_INT64_C(val) (val##LL)
+#endif
#if APR_HAVE_IPV6