aboutsummaryrefslogtreecommitdiff
path: root/libpkgconf/bsdstubs.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpkgconf/bsdstubs.h')
-rw-r--r--libpkgconf/bsdstubs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libpkgconf/bsdstubs.h b/libpkgconf/bsdstubs.h
index 2e0fb5c..8f37b70 100644
--- a/libpkgconf/bsdstubs.h
+++ b/libpkgconf/bsdstubs.h
@@ -18,8 +18,16 @@
#include <libpkgconf/libpkgconf-api.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
PKGCONF_API extern size_t pkgconf_strlcpy(char *dst, const char *src, size_t siz);
PKGCONF_API extern size_t pkgconf_strlcat(char *dst, const char *src, size_t siz);
PKGCONF_API extern char *pkgconf_strndup(const char *src, size_t len);
+#ifdef __cplusplus
+}
+#endif
+
#endif