diff --git a/minitar.h b/minitar.h index dcaf38b..6454e0d 100644 --- a/minitar.h +++ b/minitar.h @@ -39,12 +39,21 @@ struct minitar_entry char* ptr; }; -struct minitar* minitar_open(const char* pathname); -struct minitar_entry* minitar_read_entry(struct minitar* mp); -void minitar_free_entry(struct minitar_entry* entry); -void minitar_rewind(struct minitar* mp); -struct minitar_entry* minitar_find_by_name(struct minitar* mp, const char* name); -struct minitar_entry* minitar_find_any_of(struct minitar* mp, enum minitar_file_type type); -int minitar_close(struct minitar* mp); +#ifdef __cplusplus +extern "C" +{ +#endif + + struct minitar* minitar_open(const char* pathname); + struct minitar_entry* minitar_read_entry(struct minitar* mp); + void minitar_free_entry(struct minitar_entry* entry); + void minitar_rewind(struct minitar* mp); + struct minitar_entry* minitar_find_by_name(struct minitar* mp, const char* name); + struct minitar_entry* minitar_find_any_of(struct minitar* mp, enum minitar_file_type type); + int minitar_close(struct minitar* mp); + +#ifdef __cplusplus +} +#endif #endif \ No newline at end of file