]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Replace __{BEGIN,END}_DECLS with #ifdef __cplusplus
authorHeiko Becker <mail@heiko-becker.de>
Fri, 18 Aug 2023 16:23:56 +0000 (18:23 +0200)
committerAlejandro Colomar <alx@kernel.org>
Sun, 29 Oct 2023 23:00:10 +0000 (00:00 +0100)
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>
lib/readpassphrase.h

index 2462ecc3a3482abf25c192cd598af52f9d8b3773..2530b7fe2a65e9f437160664a50efffbe94e1501 100644 (file)
 #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 */