You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2007/06/01 00:42:13 UTC
svn commit: r543293 - /apr/apr/branches/1.2.x/include/apr.hw
Author: wrowe
Date: Thu May 31 15:42:13 2007
New Revision: 543293
URL: http://svn.apache.org/viewvc?view=rev&rev=543293
Log:
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>
Backport: 543292
Modified:
apr/apr/branches/1.2.x/include/apr.hw
Modified: apr/apr/branches/1.2.x/include/apr.hw
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/include/apr.hw?view=diff&rev=543293&r1=543292&r2=543293
==============================================================================
--- apr/apr/branches/1.2.x/include/apr.hw (original)
+++ apr/apr/branches/1.2.x/include/apr.hw Thu May 31 15:42:13 2007
@@ -359,15 +359,21 @@
/* 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