Skip to content

Commit

Permalink
libsparse: allow including from C++
Browse files Browse the repository at this point in the history
Change-Id: I3788fd07e2b52430a410f85fb79dc886c6a07fea
  • Loading branch information
colincross committed Apr 18, 2014
1 parent 9101878 commit 099824c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libsparse/include/sparse/sparse.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
#include <stdbool.h>
#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

struct sparse_file;

/**
Expand Down Expand Up @@ -273,4 +277,8 @@ void sparse_file_verbose(struct sparse_file *s);
*/
extern void (*sparse_print_verbose)(const char *fmt, ...);

#ifdef __cplusplus
}
#endif

#endif

0 comments on commit 099824c

Please sign in to comment.