1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

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

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);