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

Fixes the build with musl libc.
This commit is contained in:
Heiko Becker
2023-08-18 18:23:56 +02:00
committed by Serge Hallyn
parent 014536f5d5
commit 890f911e17

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 */