You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by da...@apache.org on 2007/07/28 05:57:15 UTC
svn commit: r560480 - /apr/apr/branches/evenset/include/apr.h.in
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@
Re: svn commit: r560480 - /apr/apr/branches/evenset/include/apr.h.in
Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
davi@apache.org wrote:
> 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.
Clever, thanks Davi!
Bill