After calling enterFullScreenMode on the GL view, it becomes the "key"
window, meaning it gets all of the input. This is problematic as that
view doesn't forward the input on to the input driver.
`llvm-11` changed the default from `-fcommon` to `-fno-common`:
https://reviews.llvm.org/D75056
As a result build fails as:
LD retroarch
duplicate symbol '_apple_platform' in:
obj-unix/release/ui/drivers/ui_cocoa.o
obj-unix/release/ui/drivers/cocoa/cocoa_common.o
duplicate symbol '_apple_platform' in:
obj-unix/release/ui/drivers/ui_cocoa.o
obj-unix/release/gfx/drivers_context/cocoa_gl_ctx.o
ld: 2 duplicate symbols for architecture x86_64
The change moves `apple_platform` definition from `apple_platform.h`
to `cocoa_common.m` leaving only declaration in `apple_platform.h`.
* Fix old osx condition
Current code assumes that osx < 10.12 is equivalent to ppc osx. It's not
true as Leopard x86 is still < 10.12 but not ppc. As xcode compiles fat
binaries it includes osx x86 and compilation fails.
* Disable crtswitchres when no c++11 is available
Crtswitchres altually needs c++11. Since it's not that important to make
it compatible with lower c++, just disable if no c++11 is available
* Don't use firstObject on old Mac OS X.
It was introduced in 10.6, so on old ones just implement it ourselves
* Compile osx-ppc frontend
* osx-ppc: Build a fat binary
On 10.6 i386 xcode apparently refuses to build a pure ppc.
Settle for a fat binary.
* (Metal/WindowListener) Fix duplicate symbol errors by
moving implementation of WindowListener to cocoa_common.m
* (Apple) Cleanup some conditionals
* (Cocoa) Cut down on OSX ifdefs in Cocoa-specific code
* (QB) Add rule for Metal - define HAVE_COCOA_METAL for now
when building for Metal, and HAVE_COCOA for non-Metal build
* Make necessary changes to Makefile.common and qb/config.libs.sh:
- Disable OpenGL for now for Metal build
- Take Metal conditional out of OpenGL block in Makefile.common
* (Metal) Header fixes for compiling without Xcode/Griffin
* (Mac) Some buildfixes for non-Xcode building
* (cocoa_common.h) Restructure to no longer use -DOSX
* (Apple) More buildfixes
* (Apple) Cleanups