From 099824cce31853a0680723e70151d866416a5c78 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Fri, 18 Apr 2014 13:54:12 -0700 Subject: [PATCH] libsparse: allow including from C++ Change-Id: I3788fd07e2b52430a410f85fb79dc886c6a07fea --- libsparse/include/sparse/sparse.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libsparse/include/sparse/sparse.h b/libsparse/include/sparse/sparse.h index 17d085ca..8b757d22 100644 --- a/libsparse/include/sparse/sparse.h +++ b/libsparse/include/sparse/sparse.h @@ -20,6 +20,10 @@ #include #include +#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