summaryrefslogtreecommitdiff
path: root/array.h
diff options
context:
space:
mode:
authorFelix von Leitner <felix-libowfat@fefe.de>2012-02-07 17:02:40 +0000
committerFelix von Leitner <felix-libowfat@fefe.de>2012-02-07 17:02:40 +0000
commitcf46170dc7da0f34b1e17618b9df3804b2dfcf45 (patch)
treef80b409c7e72b4df6882cc67a22c21f5868fb63e /array.h
parent24c6e42b3c86db231afe6441bc3f292de00f3fda (diff)
downloadlibowfat-cf46170dc7da0f34b1e17618b9df3804b2dfcf45.tar.gz
libowfat-cf46170dc7da0f34b1e17618b9df3804b2dfcf45.zip
make headers work in C++
add two more variable length integer encoding functions
Diffstat (limited to 'array.h')
-rw-r--r--array.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/array.h b/array.h
index a2bec14..0a212d7 100644
--- a/array.h
+++ b/array.h
@@ -5,6 +5,10 @@
#include <stddef.h>
#include "uint64.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct {
char* p;
int64 allocated; /* in bytes */
@@ -40,4 +44,8 @@ void array_chop(array* x,uint64 membersize,uint64 members);
#define array_failed(x) (array_bytes(x)==-1)
#define array_unallocated(x) (array_bytes(x)==0)
+#ifdef __cplusplus
+}
+#endif
+
#endif