How about `const char *format = config.exe == EX_WIN64 ? "__imp_%s" : "_imp_%s";`?