aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJeff Bland <jksb@member.fsf.org>2012-09-24 22:39:31 -0600
committerChad Versace <chad.versace@linux.intel.com>2012-09-25 11:18:11 -0700
commit50bd8c8172544b0070fed60e887078470a16abb1 (patch)
tree44ab12abdb4e169aaf4d11558743ebf97ef597cf /examples
parent4d35d21542998b5be45183f42bafe3b957eb290f (diff)
downloadwaffle-50bd8c8172544b0070fed60e887078470a16abb1.tar.gz
gl_basic: include NSAutoreleasePool/NSApplication directly
Including all of Cocoa is overkill, and it seems to sometimes cause gl.h to also get included, causing redefinition errors of things like GLint. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/gl_basic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/gl_basic.c b/examples/gl_basic.c
index c7f28b5..1ed9af2 100644
--- a/examples/gl_basic.c
+++ b/examples/gl_basic.c
@@ -43,7 +43,8 @@
#include <time.h>
#ifdef __APPLE__
-# include <Cocoa/Cocoa.h>
+# import <Foundation/NSAutoreleasePool.h>
+# import <Appkit/NSApplication.h>
#endif
#include "waffle.h"