mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-21 16:58:45 +00:00
Merge pull request #4227 from ligfx/clean_objc
Don't force compile everything as Objective-C++ on macOS
This commit is contained in:
commit
8fcc3b04e0
13 changed files with 89 additions and 133 deletions
|
@ -82,7 +82,7 @@ endif()
|
|||
if(WIN32)
|
||||
set(SRCS ${SRCS} GL/GLInterface/WGL.cpp)
|
||||
elseif(APPLE)
|
||||
set(SRCS ${SRCS} GL/GLInterface/AGL.cpp)
|
||||
set(SRCS ${SRCS} GL/GLInterface/AGL.mm)
|
||||
elseif(USE_X11)
|
||||
if (NOT USE_EGL)
|
||||
set(SRCS ${SRCS} GL/GLInterface/GLX.cpp)
|
||||
|
|
|
@ -4,8 +4,11 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#ifdef __APPLE__
|
||||
#if defined(__APPLE__) && defined(__OBJC__)
|
||||
#import <AppKit/AppKit.h>
|
||||
#else
|
||||
struct NSOpenGLContext;
|
||||
struct NSView;
|
||||
#endif
|
||||
|
||||
#include "Common/GL/GLInterfaceBase.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue