From 4ef48ca49adc684459644ab9f4d7b1002c0c7bb8 Mon Sep 17 00:00:00 2001 From: Adam Powers Date: Sat, 29 Aug 2020 14:48:02 -0700 Subject: [PATCH] fix syntax errors for libnethack.a --- win/shim/winshim.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/win/shim/winshim.c b/win/shim/winshim.c index 9fed47d9c..34bdccbaf 100644 --- a/win/shim/winshim.c +++ b/win/shim/winshim.c @@ -59,8 +59,8 @@ void name fn_args { \ #else /* !__EMSCRIPTEN__ */ #define A2P #define P2V -#define DECLCB(ret_type, name, args, fmt, ...) \ -ret_type name args { \ +#define DECLCB(ret_type, name, fn_args, fmt, ...) \ +ret_type name fn_args { \ ret_type ret; \ debugf("SHIM GRAPHICS: " #name "\n"); \ if (!shim_graphics_callback) return; \ @@ -68,7 +68,8 @@ ret_type name args { \ return ret; \ } -void name args { \ +#define VDECLCB(name, fn_args, fmt, ...) \ +void name fn_args { \ debugf("SHIM GRAPHICS: " #name "\n"); \ if (!shim_graphics_callback) return; \ shim_graphics_callback(#name, NULL, fmt, __VA_ARGS__); \