Browse files

Wrap with extern "C" when __cplusplus

  • Loading branch information...
1 parent 956b900 commit 5733a1d89a067e43f0e9083d803b459e2c3df9b5 @tj tj committed Nov 4, 2010
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/list.h
View
8 src/list.h
@@ -8,6 +8,10 @@
#ifndef __LIST_H__
#define __LIST_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdlib.h>
// Library version
@@ -87,4 +91,8 @@ ListIterator *ListIterator_newFromNode(ListNode *node, ListDirection direction);
ListNode *ListIterator_next(ListIterator *self);
void ListIterator_destroy(ListIterator *self);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __LIST_H__ */

0 comments on commit 5733a1d

Please sign in to comment.