summaryrefslogtreecommitdiff
path: root/textcode.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 /textcode.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 'textcode.h')
-rw-r--r--textcode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/textcode.h b/textcode.h
index d4c2b00..2c26c17 100644
--- a/textcode.h
+++ b/textcode.h
@@ -4,6 +4,10 @@
#include <stddef.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* These take len bytes from src and write them in encoded form to
* dest (if dest != NULL), returning the number of bytes written. */
@@ -111,4 +115,8 @@ size_t scan_tofrom_array(size_t (*func)(const char*,char*,size_t*),
extern const char base64[64];
+#ifdef __cplusplus
+}
+#endif
+
#endif