diff options
author | Michael Clark <michael@metaparadigm.com> | 2009-02-25 02:31:32 +0000 |
---|---|---|
committer | Michael Clark <michael@metaparadigm.com> | 2009-02-25 02:31:32 +0000 |
commit | aaec1ef3c542accb118af48c09edc7e07675671a (patch) | |
tree | aa8044c50301f18a7046f4efadc1b9134eeb61d1 /linkhash.h | |
parent | 266a3fd30141b31632eead6739ace524bc172de5 (diff) |
* 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
Diffstat (limited to 'linkhash.h')
-rw-r--r-- | linkhash.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -12,6 +12,10 @@ #ifndef _linkhash_h_ #define _linkhash_h_ +#ifdef __cplusplus +extern "C" { +#endif + /** * golden prime used in hash functions */ @@ -261,4 +265,8 @@ extern int lh_table_delete(struct lh_table *t, const void *k); void lh_abort(const char *msg, ...); void lh_table_resize(struct lh_table *t, int new_size); +#ifdef __cplusplus +} +#endif + #endif |