diff options
author | deadcast <deadcast@sent.com> | 2017-08-31 18:37:12 +0300 |
---|---|---|
committer | deadcast <deadcast@sent.com> | 2017-08-31 18:37:12 +0300 |
commit | a7c299304f5a5dc77163e7ce80b8d5ce658df5ec (patch) | |
tree | d6ccdde8052cdf48313e868c87aad26c368957be | |
parent | 956791770defa4d06696b30db276e88a09ad3538 (diff) |
Added c++ compilation support.
-rw-r--r-- | src/microtar.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/microtar.h b/src/microtar.h index 8a047e3..f4a62d1 100644 --- a/src/microtar.h +++ b/src/microtar.h @@ -8,6 +8,11 @@ #ifndef MICROTAR_H #define MICROTAR_H +#ifdef __cplusplus +extern "C" +{ +#endif + #include <stdio.h> #include <stdlib.h> @@ -78,5 +83,8 @@ int mtar_write_dir_header(mtar_t *tar, const char *name); int mtar_write_data(mtar_t *tar, const void *data, unsigned size); int mtar_finalize(mtar_t *tar); +#ifdef __cplusplus +} +#endif #endif |