Failed to compile SDL2 with GCC 5.3.0/6.2.0 (SDL_bool prob)

"NetCraft" <[email protected]>
Newsgroups gmane.comp.lib.sdl
Message-ID <[email protected]>
I try to build SDL2 with GCC 6.2.0 but I get these errors:


Code:
src/SDL.c:84:12: error: cannot initialize return object of type 'SDL_bool' with an rvalue of type 'bool'
    return (SDL_SubsystemRefCount[subsystem_index] == 0);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/SDL.c:98:12: error: cannot initialize return object of type 'SDL_bool' with an rvalue of type 'bool'
    return SDL_SubsystemRefCount[subsystem_index] == 1 || SDL_bInMainQuit;



Does anybody know how to solve it?

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.