apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r560480 - /apr/apr/branches/evenset/include/apr.h.in
Date Sat, 28 Jul 2007 03:57:15 GMT
Author: davi
Date: Fri Jul 27 20:57:15 2007
New Revision: 560480

URL: http://svn.apache.org/viewvc?view=rev&rev=560480
Log:
External linkage declarations are often forgotten and also confuses indent tools.
Add the APR_BEGIN_DECLS and APR_END_DECLS helper macros which are more easily remembered.

Modified:
    apr/apr/branches/evenset/include/apr.h.in

Modified: apr/apr/branches/evenset/include/apr.h.in
URL: http://svn.apache.org/viewvc/apr/apr/branches/evenset/include/apr.h.in?view=diff&rev=560480&r1=560479&r2=560480
==============================================================================
--- apr/apr/branches/evenset/include/apr.h.in (original)
+++ apr/apr/branches/evenset/include/apr.h.in Fri Jul 27 20:57:15 2007
@@ -69,6 +69,14 @@
 #define APR_HAS_INLINE		1
 #endif
 
+#ifdef __cplusplus
+#define APR_BEGIN_DECLS     extern "C" {
+#define APR_END_DECLS       }
+#else
+#define APR_BEGIN_DECLS
+#define APR_END_DECLS
+#endif
+
 #define APR_HAVE_ARPA_INET_H     @arpa_ineth@
 #define APR_HAVE_CONIO_H         @conioh@
 #define APR_HAVE_CRYPT_H         @crypth@



Mime
View raw message