* Don't use this as a variable, so we can compile with a C++ compiler
  * Add casts from void* to type of assignment when using malloc 
  * Add #ifdef __cplusplus guards to all of the headers
  * Add typedefs for json_object, json_tokener, array_list, printbuf, lh_table
    Michael Clark, <michael@metaparadigm.com>


git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@33 327403b1-1117-474d-bef2-5cb71233fd97
diff --git a/arraylist.h b/arraylist.h
index 2948e04..bc85c80 100644
--- a/arraylist.h
+++ b/arraylist.h
@@ -12,6 +12,10 @@
 #ifndef _arraylist_h_
 #define _arraylist_h_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define ARRAY_LIST_DEFAULT_SIZE 32
 
 typedef void (array_list_free_fn) (void *data);
@@ -42,4 +46,8 @@
 extern int
 array_list_length(struct array_list *al);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif