aboutsummaryrefslogtreecommitdiffstats
path: root/include/gwin/button.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gwin/button.h')
-rw-r--r--include/gwin/button.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/gwin/button.h b/include/gwin/button.h
index 73f42e37..afe6d0cc 100644
--- a/include/gwin/button.h
+++ b/include/gwin/button.h
@@ -55,7 +55,9 @@ typedef struct GButtonColors {
*/
typedef struct GButtonObject_t {
GWidgetObject w;
- uint16_t toggle;
+ #if GINPUT_NEED_TOGGLE
+ uint16_t toggle;
+ #endif
GButtonColors c_up;
GButtonColors c_dn;
GButtonColors c_dis;