made Xprintf inline to prevent double definition when linking HyperRogue with extra code

This commit is contained in:
Zeno Rogue 2018-06-22 02:01:31 +02:00
parent da60a2f336
commit 888d9ad3a7
1 changed files with 1 additions and 1 deletions

View File

@ -3489,7 +3489,7 @@ void handle_event(SDL_Event& ev);
#ifdef __GNUC__
__attribute__((__format__ (__printf__, 1, 2)))
#endif
void Xprintf(const char *fmt, ...) {
inline void Xprintf(const char *fmt, ...) {
va_list ap;
va_start(ap, fmt);
vprintf(fmt, ap);