JulNadeauCA/libagar

Build error under macOS

kwhr0 opened this issue · 1 comments

  1. In gui/drv_cocoa.m, you need to remove the last argument of AG_ProcessMouseMotion().

  2. In core/Makefile and gui/Makefile, you need following line.

CFLAGS += -D_DARWIN_C_SOURCE

Without this, dirfd, u_int, etc. will be undefined.

Thank you very much for reporting this!
Commits 897fcdf and 3150356 should fix the problem but I've only tested on MacOS X 10.5. If there's still a problem, please feel free to re-open the issue.