I'm trying to compile RetroArch in windows with gcc but at the compilation process there's an error:
In file included from gfx/drivers/d3d10.c:39:
gfx/drivers/../common/d3d10_common.h:1121:8: error: expected declaration specifiers or ‘...’ before ‘(’ token
1121 | (!(sizeof(d3d10_uniform_t) & 0xF)), "sizeof(d3d10_uniform_t) must be a multiple of 16");
| ^
gfx/drivers/../common/d3d10_common.h:1121:44: error: expected declaration specifiers or ‘...’ before string constant
1121 | (!(sizeof(d3d10_uniform_t) & 0xF)), "sizeof(d3d10_uniform_t) must be a multiple of 16");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from gfx/common/d3d10_common.c:20:
gfx/common/d3d10_common.h:1121:8: error: expected declaration specifiers or ‘...’ before ‘(’ token
1121 | (!(sizeof(d3d10_uniform_t) & 0xF)), "sizeof(d3d10_uniform_t) must be a multiple of 16");
| ^
gfx/common/d3d10_common.h:1121:44: error: expected declaration specifiers or ‘...’ before string constant
1121 | (!(sizeof(d3d10_uniform_t) & 0xF)), "sizeof(d3d10_uniform_t) must be a multiple of 16");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:213: obj-unix/release/gfx/drivers/d3d10.o] Error 1
make: *** Se espera a que terminen otras tareas....
make: *** [Makefile:213: obj-unix/release/gfx/common/d3d10_common.o] Error 1
In file included from gfx/drivers_font/d3d10_font.c:26:
gfx/drivers_font/../common/d3d10_common.h:1121:8: error: expected declaration specifiers or ‘...’ before ‘(’ token
1121 | (!(sizeof(d3d10_uniform_t) & 0xF)), "sizeof(d3d10_uniform_t) must be a multiple of 16");
| ^
gfx/drivers_font/../common/d3d10_common.h:1121:44: error: expected declaration specifiers or ‘...’ before string constant
1121 | (!(sizeof(d3d10_uniform_t) & 0xF)), "sizeof(d3d10_uniform_t) must be a multiple of 16");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:213: obj-unix/release/gfx/drivers_font/d3d10_font.o] Error 1
In file included from menu/drivers_display/menu_display_d3d10.c:29:
/home/<user>/retroarch/gfx/common/d3d10_common.h:1121:8: error: expected declaration specifiers or ‘...’ before ‘(’ token
1121 | (!(sizeof(d3d10_uniform_t) & 0xF)), "sizeof(d3d10_uniform_t) must be a multiple of 16");
| ^
/home/<user>/retroarch/gfx/common/d3d10_common.h:1121:44: error: expected declaration specifiers or ‘...’ before string constant
1121 | (!(sizeof(d3d10_uniform_t) & 0xF)), "sizeof(d3d10_uniform_t) must be a multiple of 16");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:213: obj-unix/release/menu/drivers_display/menu_display_d3d10.o] Error 1
I'm an initiated in c++ and I don't know how to fix it, I've tried to add the ‘ & ’ signs before and after the statement but it gives me another error. Here's the code wich gives me the error:
(!(sizeof(d3d10_uniform_t) & 0xF)), "sizeof(d3d10_uniform_t) must be a multiple of 16");
Does somebody know how to fix it? Thanks.