apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r543292 - /apr/apr/trunk/include/apr.hw
Date Thu, 31 May 2007 22:41:45 GMT
Author: wrowe
Date: Thu May 31 15:41:44 2007
New Revision: 543292

URL: http://svn.apache.org/viewvc?view=rev&rev=543292
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>

Modified:
    apr/apr/trunk/include/apr.hw

Modified: apr/apr/trunk/include/apr.hw
URL: http://svn.apache.org/viewvc/apr/apr/trunk/include/apr.hw?view=diff&rev=543292&r1=543291&r2=543292
==============================================================================
--- apr/apr/trunk/include/apr.hw (original)
+++ apr/apr/trunk/include/apr.hw Thu May 31 15:41:44 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
 



Mime
View raw message