Replace __{BEGIN,END}_DECLS with #ifdef __cplusplus

Fixes the build with musl libc.

Cherry-picked-from: 890f911e17
Link: <https://github.com/shadow-maint/shadow/pull/789>
Reviewed-by: Michael Vetter <jubalh@iodoru.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Heiko Becker
2023-08-18 18:23:56 +02:00
committed by Alejandro Colomar
parent 817f3283d1
commit 58b96645c9
+6 -2
View File
@@ -36,8 +36,12 @@
#endif
#include <sys/types.h>
__BEGIN_DECLS
#ifdef __cplusplus
extern "C" {
#endif
char * readpassphrase(const char *, char *, size_t, int);
__END_DECLS
#ifdef __cplusplus
}
#endif
#endif /* !LIBBSD_READPASSPHRASE_H */