forked from enlightenment/efl
parent
692fc0d40d
commit
c6d30ee9da
|
@ -25,8 +25,8 @@ typedef struct _Elm_Params_Entry
|
||||||
|
|
||||||
#define CHOICE_GET(CHOICES, STR) \
|
#define CHOICE_GET(CHOICES, STR) \
|
||||||
unsigned int i; \
|
unsigned int i; \
|
||||||
for (i = 0; i < sizeof(CHOICES); i++) \
|
for (i = 0; i < sizeof(CHOICES)/sizeof (CHOICES)[0]; i++) \
|
||||||
if (strcmp(STR, CHOICES[i]) == 0) \
|
if (strcmp((STR), (CHOICES)[i]) == 0) \
|
||||||
return i
|
return i
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue