aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/asterisk.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asterisk.h b/include/asterisk.h
index 774147fde..177f45276 100644
--- a/include/asterisk.h
+++ b/include/asterisk.h
@@ -61,6 +61,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);
@@ -69,6 +72,9 @@ FILE *__ast_fdleak_fopen(const char *path, const char *mode, const char *file, i
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
int ast_set_priority(int); /*!< Provided by asterisk.c */