Skip to content

Commit 7e1647b

Browse files
committed
Add extern "C" guards to public headers
1 parent 3f768d0 commit 7e1647b

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

include/libtatsu/tatsu.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@
3232
#endif
3333
#endif
3434

35+
#ifdef __cplusplus
36+
extern "C" {
37+
#endif
38+
3539
LIBTATSU_API const char* libtatsu_version();
3640

41+
#ifdef __cplusplus
42+
}
43+
#endif
44+
3745
#endif

include/libtatsu/tss.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
#include <plist/plist.h>
2929
#include <stdbool.h>
3030

31+
#ifdef __cplusplus
32+
extern "C" {
33+
#endif
34+
3135
/* parameters */
3236
LIBTATSU_API int tss_parameters_add_from_manifest(plist_t parameters, plist_t build_identity, bool include_manifest);
3337

@@ -65,4 +69,8 @@ LIBTATSU_API int tss_response_get_blob_by_entry(plist_t response, const char* en
6569

6670
LIBTATSU_API void tss_set_debug_level(int level);
6771

72+
#ifdef __cplusplus
73+
}
74+
#endif
75+
6876
#endif

0 commit comments

Comments
 (0)