From 888d9ad3a7ad2cc0ed546d77d9c69ea8cb43f6cf Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 22 Jun 2018 02:01:31 +0200 Subject: [PATCH] made Xprintf inline to prevent double definition when linking HyperRogue with extra code --- hyper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyper.h b/hyper.h index 21d954df..3eb5f78b 100644 --- a/hyper.h +++ b/hyper.h @@ -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);