Replace __{BEGIN,END}_DECLS with #ifdef __cplusplus
Fixes the build with musl libc.
This commit is contained in:
committed by
Serge Hallyn
parent
014536f5d5
commit
890f911e17
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user