Make the event header file work under C++.
authorJoshua Colp <jcolp@digium.com>
Wed, 29 Aug 2007 21:55:15 +0000 (21:55 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 29 Aug 2007 21:55:15 +0000 (21:55 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@81364 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/event.h

index 3133234..86d3358 100644 (file)
 #ifndef AST_EVENT_H
 #define AST_EVENT_H
 
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
 #include "asterisk/event_defs.h"
 
 /*! 
@@ -470,4 +474,8 @@ const char *ast_event_iterator_get_ie_str(struct ast_event_iterator *iterator);
  */
 void *ast_event_iterator_get_ie_raw(struct ast_event_iterator *iterator);
 
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif
+
 #endif /* AST_EVENT_H */