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_ */