aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/gwin.c
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@seriouslyembedded.com>2015-10-21 10:08:49 +0200
committerJoel Bodenmann <joel@seriouslyembedded.com>2015-10-21 10:08:49 +0200
commit65fb1ca5ee6ce90051ee15f616d2fde8ebb0ae97 (patch)
treec997a4e6fc1b73ea27ca0ddb4d70459d0b4a351d /src/gwin/gwin.c
parent1092f7c2824d4e4d01815a9f2f81f9514c8731ea (diff)
downloaduGFX-65fb1ca5ee6ce90051ee15f616d2fde8ebb0ae97.tar.gz
uGFX-65fb1ca5ee6ce90051ee15f616d2fde8ebb0ae97.tar.bz2
uGFX-65fb1ca5ee6ce90051ee15f616d2fde8ebb0ae97.zip
Fixing compiler warnings/errors
Diffstat (limited to 'src/gwin/gwin.c')
-rw-r--r--src/gwin/gwin.c27
1 files changed, 15 insertions, 12 deletions
diff --git a/src/gwin/gwin.c b/src/gwin/gwin.c
index 5879e895..07beb996 100644
--- a/src/gwin/gwin.c
+++ b/src/gwin/gwin.c
@@ -36,6 +36,18 @@ static color_t defaultBgColor = Black;
static font_t defaultFont;
#endif
+/* These init functions are defined by each module but not published */
+extern void _gwmInit(void);
+extern void _gwmDeinit(void);
+#if GWIN_NEED_WIDGET
+ extern void _gwidgetInit(void);
+ extern void _gwidgetDeinit(void);
+#endif
+#if GWIN_NEED_CONTAINERS
+ extern void _gcontainerInit(void);
+ extern void _gcontainerDeinit(void);
+#endif
+
/*-----------------------------------------------
* Helper Routines
*-----------------------------------------------*/
@@ -46,33 +58,24 @@ static color_t defaultBgColor = Black;
void _gwinInit(void)
{
- extern void _gwmInit(void);
-
_gwmInit();
- #if GWIN_NEED_WIDGET
- extern void _gwidgetInit(void);
+ #if GWIN_NEED_WIDGET
_gwidgetInit();
#endif
- #if GWIN_NEED_CONTAINERS
- extern void _gcontainerInit(void);
+ #if GWIN_NEED_CONTAINERS
_gcontainerInit();
#endif
}
void _gwinDeinit(void)
{
- extern void _gwmDeinit(void);
-
#if GWIN_NEED_CONTAINERS
- extern void _gcontainerDeinit(void);
-
_gcontainerDeinit();
#endif
- #if GWIN_NEED_WIDGET
- extern void _gwidgetDeinit(void);
+ #if GWIN_NEED_WIDGET
_gwidgetDeinit();
#endif