]> 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)
committerSerge Hallyn <serge@hallyn.com>
Fri, 18 Aug 2023 23:04:11 +0000 (18:04 -0500)
Fixes the build with musl libc.

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