apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r109326 - /apr/apr/trunk/include/apr.h.in
Date Wed, 01 Dec 2004 11:25:37 GMT
Author: jorton
Date: Wed Dec  1 03:25:36 2004
New Revision: 109326

URL: http://svn.apache.org/viewcvs?view=rev&rev=109326
Log:
* include/apr.h.in: Define __STDC_CONSTANT_MACROS for C++ so that
stdint.h exposes the {,U}INT64_C macros.

Modified:
   apr/apr/trunk/include/apr.h.in

Modified: apr/apr/trunk/include/apr.h.in
Url: http://svn.apache.org/viewcvs/apr/apr/trunk/include/apr.h.in?view=diff&rev=109326&p1=apr/apr/trunk/include/apr.h.in&r1=109325&p2=apr/apr/trunk/include/apr.h.in&r2=109326
==============================================================================
--- apr/apr/trunk/include/apr.h.in	(original)
+++ apr/apr/trunk/include/apr.h.in	Wed Dec  1 03:25:36 2004
@@ -116,6 +116,12 @@
 #include <sys/socket.h>
 #endif
 
+#if defined(__cplusplus) && !defined(__STDC_CONSTANT_MACROS)
+/* C99 7.18.4 requires that stdint.h only exposes INT64_C 
+ * and UINT64_C for C++ implementations if this is defined: */
+#define __STDC_CONSTANT_MACROS
+#endif
+
 #if APR_HAVE_STDINT_H
 #include <stdint.h>
 #endif

Mime
View raw message