Add extern "C" to all header files

This commit is contained in:
2024-03-21 23:06:27 +00:00
parent 76222d31d4
commit 6fc0b2987e
4 changed files with 32 additions and 0 deletions

View File

@@ -3,6 +3,10 @@
#include "aliases.h"
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
typedef struct dstr String;
String *wapp_dstr_with_capacity(u64 capacity);
@@ -19,4 +23,8 @@ u64 wapp_dstr_length(const String *str);
u64 wapp_dstr_capacity(const String *str);
const char *wapp_dstr_to_cstr(const String *str);
#ifdef __cplusplus
}
#endif // __cplusplus
#endif // !DSTR_H