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
#define NUMPARTS(...) \
(sizeof((const char *[]){"", __VA_ARGS__}) / sizeof(const char *) - 1)
@@ -14,4 +18,8 @@
void join_path(char *dst, u64 count, ...);
void dirup(char *dst, u64 levels, const char *path);
#ifdef __cplusplus
}
#endif // __cplusplus
#endif // !PATH_UTILS_H