JulNadeauCA / libagar

Cross-Platform GUI Toolkit (stable)
https://libagar.org/
BSD 2-Clause "Simplified" License
377 stars 41 forks source link

SG missing __APPLE__ directive in sg.h #64

Closed WallyZambotti closed 1 year ago

WallyZambotti commented 3 years ago

Line 13 of sg/sg.h

# include <GL/glu.h>

should be changed to

#ifdef __APPLE__
# include <OpenGL/glu.h>
#else 
# include <GL/glu.h>
#endif

Otherwise fatal errors are caused when building in MacOS

JulNadeauCA commented 1 year ago

Fixed in r10939. Thanks!