Skip to content

Instantly share code, notes, and snippets.

@jrsa
Created March 7, 2016 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrsa/3e4b231f60bce99a142b to your computer and use it in GitHub Desktop.
Save jrsa/3e4b231f60bce99a142b to your computer and use it in GitHub Desktop.
diff --git a/chugl_mac.mm b/chugl_mac.mm
index 5cd32a1..1fb4612 100644
--- a/chugl_mac.mm
+++ b/chugl_mac.mm
@@ -28,7 +28,8 @@
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
#import <OpenGL/OpenGL.h>
-#import <CoreGraphics/CoreGraphics.h>
+//#import <CoreGraphics/CoreGraphics.h>
+#import <ApplicationServices/ApplicationServices.h>
#import <dispatch/queue.h>
// general includes
diff --git a/makefile.osx b/makefile.osx
index 9630eb9..aa1d7fc 100644
--- a/makefile.osx
+++ b/makefile.osx
@@ -4,7 +4,7 @@ OBJCXX_MODULES+=chugl_mac.mm
ARCHS?=i386 x86_64
ARCHOPTS=$(addprefix -arch ,$(ARCHS))
-FRAMEWORKS=Foundation AppKit OpenGL CoreGraphics
+FRAMEWORKS=Foundation AppKit OpenGL ApplicationServices
FLAGS=-D__MACOSX_CORE__ -I$(CK_SRC_PATH) $(ARCHOPTS) -fPIC $(ISYSROOT)
LDFLAGS=-bundle $(ARCHOPTS) $(ISYSROOT) $(addprefix -framework ,$(FRAMEWORKS)) -ObjC \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment