diff options
author | Heiko Becker <mail@heiko-becker.de> | 2023-08-18 18:23:56 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2023-10-30 00:00:10 +0100 |
commit | 58b96645c93395c7a109aa6e43cb5fff2c5b4647 (patch) | |
tree | 94a5e550d3c8a1cf81f9e773a85a0ded672ccbec | |
parent | 817f3283d10ead2ba50c88b9d8f62fb8c7fa94c5 (diff) |
Replace __{BEGIN,END}_DECLS with #ifdef __cplusplus
Fixes the build with musl libc.
Cherry-picked-from: 890f911e17169e44b43fe98742540267093559ea
Link: <https://github.com/shadow-maint/shadow/pull/789>
Reviewed-by: Michael Vetter <jubalh@iodoru.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r-- | lib/readpassphrase.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/readpassphrase.h b/lib/readpassphrase.h index 2462ecc3..2530b7fe 100644 --- a/lib/readpassphrase.h +++ b/lib/readpassphrase.h @@ -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 */ |