From ab3f4e34b9f8d40688cc9cae4ec17b1fc3059401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 22 Jun 2006 01:32:24 +0000 Subject: [PATCH] Add extern "C" for C++. From joerg at britannica dot bec dot de git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17667 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/fnmatch.hin | 8 ++++++++ lib/roken/glob.hin | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/lib/roken/fnmatch.hin b/lib/roken/fnmatch.hin index adee1fdd7..7675f4bd5 100644 --- a/lib/roken/fnmatch.hin +++ b/lib/roken/fnmatch.hin @@ -42,6 +42,10 @@ #endif #endif +#ifdef __cplusplus +extern "C" { +#endif + #define fnmatch rk_fnmatch #define FNM_NOMATCH 1 /* Match failed. */ @@ -53,4 +57,8 @@ int ROKEN_LIB_FUNCTION fnmatch (const char *, const char *, int); +#ifdef __cplusplus +} +#endif + #endif /* !_FNMATCH_H_ */ diff --git a/lib/roken/glob.hin b/lib/roken/glob.hin index fb6b53986..ffb608104 100644 --- a/lib/roken/glob.hin +++ b/lib/roken/glob.hin @@ -43,6 +43,10 @@ #endif #endif +#ifdef __cplusplus +extern "C" { +#endif + #define glob_t rk_glob_t #define glob rk_glob #define globfree rk_globfree @@ -93,4 +97,8 @@ glob (const char *, int, int (*)(const char *, int), glob_t *); void ROKEN_LIB_FUNCTION globfree (glob_t *); +#ifdef __cplusplus +} +#endif + #endif /* !_GLOB_H_ */