summaryrefslogtreecommitdiff
path: root/open.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 /open.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 'open.h')
-rw-r--r--open.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/open.h b/open.h
index 169f6fa..045f0e3 100644
--- a/open.h
+++ b/open.h
@@ -2,6 +2,10 @@
#ifndef OPEN_H
#define OPEN_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* open filename for reading and return the file handle or -1 on error */
int open_read(const char* filename);
@@ -29,4 +33,8 @@ int open_write(const char* filename);
* Return file handle or -1 on error. */
int open_rw(const char* filename);
+#ifdef __cplusplus
+}
+#endif
+
#endif