From ddae0db3daac17ac7b6733861e5863d26a3a8c6c Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Thu, 3 Sep 2020 14:42:24 -0400 Subject: [PATCH] *Added forward declaration to fix the error that somehow went undetected by the minGW compiler. --- pd/src/g_numbox.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pd/src/g_numbox.c b/pd/src/g_numbox.c index 4de6d1187..b05176567 100644 --- a/pd/src/g_numbox.c +++ b/pd/src/g_numbox.c @@ -26,6 +26,9 @@ static void my_numbox_draw_update(t_gobj *client, t_glist *glist); t_widgetbehavior my_numbox_widgetbehavior; /*static*/ t_class *my_numbox_class; +// forward declaration +static void my_numbox_set_change(t_my_numbox *x, t_floatarg f); + static t_symbol *numbox_keyname_sym_a; static void my_numbox_tick_reset(t_my_numbox *x) @@ -46,7 +49,7 @@ static void my_numbox_tick_wait(t_my_numbox *x) } // to enable ability to change values using arrow keys (only when focused) -void my_numbox_set_change(t_my_numbox *x, t_floatarg f) +static void my_numbox_set_change(t_my_numbox *x, t_floatarg f) { if (f == 0 && x->x_gui.x_change != 0) { -- GitLab