diff --git a/config.h.cmake b/config.h.cmake index 2f382cc73..b2daa5979 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -1153,6 +1153,7 @@ __END_DECLS #endif #ifdef __cplusplus extern "C" +{ #endif #if !defined(HAVE_VSNPRINTF_PROTO) int vsnprintf(char *str, size_t n, char const *fmt, va_list ap); @@ -1161,7 +1162,7 @@ int vsnprintf(char *str, size_t n, char const *fmt, va_list ap); int snprintf(char *str, size_t n, char const *fmt, ...); #endif #ifdef __cplusplus -extern "C" +} #endif #endif @@ -1222,7 +1223,10 @@ extern "C" #define HAVE_SETEUID_FAKE #ifdef __cplusplus extern "C" +{ #endif int seteuid(INT32_BASETYPE euid); /* defined in fakes.c */ +#ifdef __cplusplus +} +#endif #endif -