summaryrefslogtreecommitdiffstats
path: root/libsparse
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2014-04-18 13:54:12 -0700
committerColin Cross <ccross@android.com>2014-04-18 14:22:22 -0700
commit099824cce31853a0680723e70151d866416a5c78 (patch)
tree830552718fca3c066857baf653df1d5b328a2962 /libsparse
parent9101878dd06a74cedeadca3fec3b3db68cba8bf0 (diff)
downloadsystem_core-099824cce31853a0680723e70151d866416a5c78.zip
system_core-099824cce31853a0680723e70151d866416a5c78.tar.gz
system_core-099824cce31853a0680723e70151d866416a5c78.tar.bz2
libsparse: allow including from C++
Change-Id: I3788fd07e2b52430a410f85fb79dc886c6a07fea
Diffstat (limited to 'libsparse')
-rw-r--r--libsparse/include/sparse/sparse.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libsparse/include/sparse/sparse.h b/libsparse/include/sparse/sparse.h
index 17d085c..8b757d2 100644
--- a/libsparse/include/sparse/sparse.h
+++ b/libsparse/include/sparse/sparse.h
@@ -20,6 +20,10 @@
#include <stdbool.h>
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct sparse_file;
/**
@@ -273,4 +277,8 @@ void sparse_file_verbose(struct sparse_file *s);
*/
extern void (*sparse_print_verbose)(const char *fmt, ...);
+#ifdef __cplusplus
+}
+#endif
+
#endif