From a2ee4bb50505a2bc6a69d958c7c58d07725500f2 Mon Sep 17 00:00:00 2001 From: Mark Nevill Date: Tue, 27 Feb 2007 00:41:24 +0100 Subject: [PATCH] Added C++ compatibility to header. --- include/basedir.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/basedir.h b/include/basedir.h index 7143a0d..34a07fa 100644 --- a/include/basedir.h +++ b/include/basedir.h @@ -8,6 +8,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /** Version of XDG basedir-spec implemented in this library. */ #define XDG_BASEDIR_SPEC 0.6 @@ -126,4 +130,8 @@ FILE * xdgConfigOpen(const char* relativePath, const char* mode, xdgHandle handl /*@}*/ +#ifdef __cplusplus +} // extern "C" +#endif + #endif //XDG_BASEDIR_H -- 2.11.4.GIT