From ae1c3ef59fa1727668d2c9c74fffcc94d3cffdcb Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sun, 13 Nov 2016 23:46:06 +0100 Subject: [PATCH] Fixing issue that prevented linking against the spinbox widget functions --- src/gwin/gwin_spinbox.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gwin/gwin_spinbox.c b/src/gwin/gwin_spinbox.c index af679eda..f488d1fe 100644 --- a/src/gwin/gwin_spinbox.c +++ b/src/gwin/gwin_spinbox.c @@ -13,14 +13,13 @@ // This widget uses partial redraw by using the widget flags to indicate which // portions of the widget needs to be redrawn. +#include "../../gfx.h" +#if GFX_USE_GWIN && GWIN_NEED_SPINBOX + #include "gwin_class.h" #include "stdlib.h" #include "string.h" -#if GFX_USE_GWIN && GWIN_NEED_SPINBOX - -#include "src/gwin/gwin_class.h" - // Configuration options #define TEXTPADDING 2 #define BOXPADDING 8