X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Flibcore%2Flc_opts.c;h=665398acf9d5866516f4862d5a5fe1b82f1bee47;hb=6ccff2965d94c272f71df2a1655336af47bb7753;hp=3c33724b07a767d11d3a20c7a09f3563ee4487cc;hpb=573f2284df8276913dfcf63c795cc6cfbe15462a;p=libfirm diff --git a/ir/libcore/lc_opts.c b/ir/libcore/lc_opts.c index 3c33724b0..665398acf 100644 --- a/ir/libcore/lc_opts.c +++ b/ir/libcore/lc_opts.c @@ -28,6 +28,7 @@ #include "lc_opts_enum.h" #include "hashptr.h" #include "lc_printf.h" +#include "util.h" #include "xmalloc.h" #include "obst.h" @@ -504,7 +505,7 @@ int lc_opt_occurs(lc_opt_entry_t *opt, const char *value, lc_opt_err_info_t *err case lc_opt_type_bit: case lc_opt_type_negbit: strtolower(buf, sizeof(buf), value); - for (i = 0; i < LC_ARRSIZE(bool_strings); ++i) { + for (i = 0; i < ARRAY_SIZE(bool_strings); ++i) { if (strcmp(buf, bool_strings[i].str) == 0) { val->integer = bool_strings[i].val; error = lc_opt_err_none;