[svn-commits] tilghman: branch 1.4 r213559 - /branches/1.4/include/asterisk.h
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Aug 21 11:52:58 CDT 2009
Author: tilghman
Date: Fri Aug 21 11:52:53 2009
New Revision: 213559
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=213559
Log:
Permit DEBUG_FD_LEAKS to be used with C++ source files.
(closes issue #15698)
Reported by: slavon
Patches:
20090817__issue15698.diff.txt uploaded by tilghman (license 14)
Tested by: slavon, tilghman
Modified:
branches/1.4/include/asterisk.h
Modified: branches/1.4/include/asterisk.h
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.4/include/asterisk.h?view=diff&rev=213559&r1=213558&r2=213559
==============================================================================
--- branches/1.4/include/asterisk.h (original)
+++ branches/1.4/include/asterisk.h Fri Aug 21 11:52:53 2009
@@ -53,6 +53,9 @@
#define dup2(a,b) __ast_fdleak_dup2(a, b, __FILE__,__LINE__,__PRETTY_FUNCTION__)
#define dup(a) __ast_fdleak_dup(a, __FILE__,__LINE__,__PRETTY_FUNCTION__)
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
int __ast_fdleak_open(const char *file, int line, const char *func, const char *path, int flags, ...);
int __ast_fdleak_pipe(int *fds, const char *file, int line, const char *func);
int __ast_fdleak_socket(int domain, int type, int protocol, const char *file, int line, const char *func);
@@ -61,6 +64,9 @@
int __ast_fdleak_fclose(FILE *ptr);
int __ast_fdleak_dup2(int oldfd, int newfd, const char *file, int line, const char *func);
int __ast_fdleak_dup(int oldfd, const char *file, int line, const char *func);
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif
#endif
/* provided in asterisk.c */
More information about the svn-commits
mailing list