diff options
author | Davi Arnaut <davi@apache.org> | 2007-07-28 03:57:15 +0000 |
---|---|---|
committer | Davi Arnaut <davi@apache.org> | 2007-07-28 03:57:15 +0000 |
commit | 3f3db283d87c9e19848b8ee9cbc9c493821b1b2f (patch) | |
tree | f4a77838633c6a2c5d47d04aa27d65dac5f56ee2 | |
parent | b66fd5917c7b60f6b1a616ea77f48f8d3cc4bfe8 (diff) | |
download | apr-3f3db283d87c9e19848b8ee9cbc9c493821b1b2f.tar.gz |
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.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/evenset@560480 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | include/apr.h.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/apr.h.in b/include/apr.h.in index 6949312ef..a7ea53559 100644 --- a/include/apr.h.in +++ b/include/apr.h.in @@ -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@ |