diff options
Diffstat (limited to 'src/gwin')
-rw-r--r-- | src/gwin/checkbox.h | 8 | ||||
-rw-r--r-- | src/gwin/class_gwin.h | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/gwin/checkbox.h b/src/gwin/checkbox.h index c124078e..2b1fb801 100644 --- a/src/gwin/checkbox.h +++ b/src/gwin/checkbox.h @@ -48,6 +48,10 @@ typedef struct GCheckboxObject { #endif } GCheckboxObject; +#ifdef __cplusplus +extern "C" { +#endif + /** * @brief Create a checkbox window. * @return NULL if there is no resultant drawing area, otherwise a window handle. @@ -111,6 +115,10 @@ void gwinCheckboxDraw_CheckOnLeft(GWidgetObject *gw, void *param); void gwinCheckboxDraw_CheckOnRight(GWidgetObject *gw, void *param); /** @} */ +#ifdef __cplusplus +} +#endif + #endif /* _GWIN_CHECKBOX_H */ /** @} */ diff --git a/src/gwin/class_gwin.h b/src/gwin/class_gwin.h index 61a27447..995121b7 100644 --- a/src/gwin/class_gwin.h +++ b/src/gwin/class_gwin.h @@ -98,7 +98,7 @@ typedef struct gwinVMT { void (*ToggleOn) (GWidgetObject *gw, uint16_t role); // @< Process toggle on events (optional) }; #endif - #if GINPUT_NEED_TOGGLE + #if GINPUT_NEED_DIAL struct { uint16_t dialroles; // @< The roles supported for dials (0->dialroles-1) void (*DialAssign) (GWidgetObject *gw, uint16_t role, uint16_t instance); // @< Test the role and save the dial instance handle (optional) |