sgl

diff include/sgl.h @ 41:f4ea3a88b05a

macos build fixes. Patch by Andrew Woods
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 25 Jan 2025 22:26:40 +0200
parents f7de32814f34
children
line diff
     1.1 --- a/include/sgl.h	Thu Jun 28 03:42:26 2012 +0300
     1.2 +++ b/include/sgl.h	Sat Jan 25 22:26:40 2025 +0200
     1.3 @@ -4,7 +4,7 @@
     1.4  #ifdef __APPLE__
     1.5  #include <TargetConditionals.h>
     1.6  
     1.7 -#if defined(TARGET_OS_IPHONE) || defined(TARGET_IPHONE_SIMULATOR)
     1.8 +#if TARGET_OS_IPHONE != 0 || TARGET_IPHONE_SIMULATOR != 0
     1.9  #include <OpenGLES/ES2/gl.h>
    1.10  #else /* !iphone */
    1.11  #include <OpenGL/gl.h>
    1.12 @@ -162,4 +162,6 @@
    1.13  void sgl_button_callback(sgl_button_callback_t func);
    1.14  void sgl_idle_callback(sgl_idle_callback_t func);
    1.15  
    1.16 +void sgl_log(const char *fmt, ...);
    1.17 +
    1.18  #endif	/* SGL_H_ */