From: Heiko Becker Date: Fri, 18 Aug 2023 16:23:56 +0000 (+0200) Subject: Replace __{BEGIN,END}_DECLS with #ifdef __cplusplus X-Git-Tag: 4.15.0-rc1~228 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=890f911e17169e44b43fe98742540267093559ea;p=thirdparty%2Fshadow.git Replace __{BEGIN,END}_DECLS with #ifdef __cplusplus Fixes the build with musl libc. --- diff --git a/libmisc/readpassphrase.h b/libmisc/readpassphrase.h index 2462ecc3a..2530b7fe2 100644 --- a/libmisc/readpassphrase.h +++ b/libmisc/readpassphrase.h @@ -36,8 +36,12 @@ #endif #include -__BEGIN_DECLS +#ifdef __cplusplus +extern "C" { +#endif char * readpassphrase(const char *, char *, size_t, int); -__END_DECLS +#ifdef __cplusplus +} +#endif #endif /* !LIBBSD_READPASSPHRASE_H */