From 2a8ee1a7ffe75d99eb1e88ea9c22634a807345de Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Mon, 30 Dec 2013 17:36:46 -0600 Subject: [PATCH] [GLExtensions] Hopefully fix OS X build. --- Source/Core/DolphinWX/GLInterface/AGL.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinWX/GLInterface/AGL.cpp b/Source/Core/DolphinWX/GLInterface/AGL.cpp index 2f0d897e1b..a2dbdb1c6b 100644 --- a/Source/Core/DolphinWX/GLInterface/AGL.cpp +++ b/Source/Core/DolphinWX/GLInterface/AGL.cpp @@ -21,6 +21,7 @@ #include "ConfigManager.h" #include +#import #include "VertexShaderManager.h" #include "../GLInterface.h" @@ -31,8 +32,8 @@ void* NSGLGetProcAddress (const char *name) { NSSymbol symbol; - char *symbolName; - symbolName = malloc (strlen (name) + 2); // 1 + char* symbolName; + symbolName = (char*)malloc(strlen (name) + 2); // 1 strcpy(symbolName + 1, name); // 2 symbolName[0] = '_'; // 3 symbol = NULL;