Remove __BEGIN_DECLS/__END_DECLS
The __BEGIN_DECLS and __END_DECLS are internal identifiers in glibc and are not defined in any standard. Using them fails build on musl libc, its better to avoid them Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
1d5c71c6d9
commit
095052c601
@ -221,7 +221,9 @@ struct syslog_data {
|
|||||||
.log_mask = 0xff, \
|
.log_mask = 0xff, \
|
||||||
}
|
}
|
||||||
|
|
||||||
__BEGIN_DECLS
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
void openlog (const char *, int, int);
|
void openlog (const char *, int, int);
|
||||||
void closelog (void);
|
void closelog (void);
|
||||||
|
|
||||||
@ -245,7 +247,9 @@ void syslogp_r (int, struct syslog_data *, const char *, const char *,
|
|||||||
const char *, ...);
|
const char *, ...);
|
||||||
void vsyslogp_r (int, struct syslog_data *, const char *, const char *,
|
void vsyslogp_r (int, struct syslog_data *, const char *, const char *,
|
||||||
const char *, va_list);
|
const char *, va_list);
|
||||||
__END_DECLS
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#else /* !__KERNEL__ */
|
#else /* !__KERNEL__ */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user