From 8cc3266b2a172a51dc12d05e8e1a06485b895e48 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 22 Sep 2023 09:57:48 -0400 Subject: Settings: Rename INT/BOOL setting type enum to RB_INT/RB_BOOL ....Because INT and BOOL are already defined in mingw32. Change-Id: I28ab8189c00002c8f68bc9d0c23d2ae78d9e33d0 --- apps/settings.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/settings.c') diff --git a/apps/settings.c b/apps/settings.c index 8cfd4afec3..b281646686 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -1201,7 +1201,7 @@ bool set_bool_options(const char* string, const bool* variable, }; bool result; - result = set_option(string, variable, BOOL, names, 2, + result = set_option(string, variable, RB_BOOL, names, 2, (void (*)(int))(void (*)(void))function); return result; } @@ -1286,13 +1286,13 @@ bool set_option(const char* string, const void* variable, enum optiontype type, item.lang_id = -1; item.cfg_vals = (char*)string; item.setting = &temp; - if (type == BOOL) + if (type == RB_BOOL) temp = *(bool*)variable? 1: 0; else temp = *(int*)variable; if (!option_screen(&item, NULL, false, NULL)) { - if (type == BOOL) + if (type == RB_BOOL) *(bool*)variable = (temp == 1); else -- cgit v1.2.3