diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2022-09-26 18:49:19 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2022-09-26 18:51:30 +0200 |
commit | 931d326549a1f1d077c77005b0d97f736fff4c1f (patch) | |
tree | 46d5a4d5d939dce62a9d65e8cae0009fdaffe315 | |
parent | 2318093ca77b1017083daf07e8e6065f0349e584 (diff) | |
download | tdelibs-931d326549a1f1d077c77005b0d97f736fff4c1f.tar.gz tdelibs-931d326549a1f1d077c77005b0d97f736fff4c1f.zip |
Fix `#ifdef __cplusplus` for blocks `extern "C"` in config.h.cmake.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit e9571392f67334d5b02191debfefe3b7ee064b8f)
-rw-r--r-- | config.h.cmake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/config.h.cmake b/config.h.cmake index 426bac193..068a25024 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -1144,6 +1144,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); @@ -1152,7 +1153,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 @@ -1213,7 +1214,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 - |