wojciech-graj / doom-ascii

DooM in the terminal!
GNU General Public License v2.0
543 stars 24 forks source link

building for macos with apple clang #1

Closed hypafrag closed 1 year ago

hypafrag commented 1 year ago

Fixed

w_wad.c:364:5: error: implicit declaration of function 'I_EndRead' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    I_EndRead ();

by adding I_EndRead declaration to i_video.h

Fixed unix macros detection based on http://web.archive.org/web/20160306052035/http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system

Added make mac target with linker options tweaked for apple clang

wojciech-graj commented 1 year ago

I don't have a mac so I can't test compilation on it, but everything looks fine, so I'll merge. Thanks for contributing.