summaryrefslogtreecommitdiffstats
path: root/libsparse
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2014-04-18 21:33:47 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-04-18 21:33:47 +0000
commitb0cb721fb3f8c8019705da99f7ac727aab474209 (patch)
treee7b83ca7a3f903468f5633568ce7ed1f95e2f763 /libsparse
parente29590b08bce1667c6bddebeb80991b7d16344c4 (diff)
parent37d39eba0b3da124be747dd6a014332817135264 (diff)
downloadsystem_core-b0cb721fb3f8c8019705da99f7ac727aab474209.zip
system_core-b0cb721fb3f8c8019705da99f7ac727aab474209.tar.gz
system_core-b0cb721fb3f8c8019705da99f7ac727aab474209.tar.bz2
am 37d39eba: am 0cb82da2: am 958235bd: Merge "libsparse: allow including from C++"
* commit '37d39eba0b3da124be747dd6a014332817135264': libsparse: allow including from C++
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