janet-lang / jaylib

Janet bindings to Raylib
MIT License
146 stars 37 forks source link

Update project.janet to fix building on macos #41

Closed saikyun closed 1 year ago

saikyun commented 1 year ago

Buliding on macos I got same errors as: https://github.com/axel-download-accelerator/axel/issues/136

According to the issue, you need a flag _DARWIN_C_SOURCE when _POSIX_C_SOURCE is set. Setting that flag when OS is macos works for me, and shouldn't interfere with other OSes.