Remove the semicolon in the macro definition to force adding one on the
call sites, to make the code look like an actual function.
}
libbsd_link_warning(fgetln,
"This function cannot be safely ported, use getline(3) "
- "instead, as it is supported by GNU and POSIX.1-2008.")
+ "instead, as it is supported by GNU and POSIX.1-2008.");
#else
#error "Function fgetln() needs to be ported."
#endif
}
libbsd_link_warning(fgetwln,
"This function cannot be safely ported, use fgetwc(3) "
- "instead, as it is supported by C99 and POSIX.1-2001.")
+ "instead, as it is supported by C99 and POSIX.1-2001.");
#define libbsd_link_warning(symbol, msg) \
static const char libbsd_emit_link_warning_##symbol[] \
- __attribute__((__used__,__section__(".gnu.warning." #symbol))) = msg;
+ __attribute__((__used__,__section__(".gnu.warning." #symbol))) = msg
#ifdef __ELF__
#define libbsd_symver_default(alias, symbol, version) \