mirror of
https://github.com/HomeworldSDL/HomeworldSDL.git
synced 2025-10-29 19:45:21 +00:00
macOS: The game now compiles and runs on modern (macOS 11.5+) macs, both on x86_64 and arm64 macOS: When compiled for Raider Retreat, the game now uses a separate directory macOS: utility_mac.c and File_Mac.c are now used by the build system instead of utility.c and File.c respectively. This reduces the overall amount of hard to read `#if`ed code on all platforms.
25 lines
717 B
Objective-C
25 lines
717 B
Objective-C
//
|
|
// Prefix header for all source files of the 'Homeworld' target in the 'Homeworld' project
|
|
//
|
|
|
|
#ifdef __OBJC__
|
|
#import <Cocoa/Cocoa.h>
|
|
#endif
|
|
|
|
// _MACOSX - Mac-specific code (#define'd on gcc command line / target info in Xcode)
|
|
|
|
// FIX_ENDIAN - use where data needs byte-swapping
|
|
|
|
// _MACOSX_FIX_ANIM - use to toggle animatic (movie) code
|
|
// _MACOSX_FIX_GL - use to toggle glcaps and other gl related code
|
|
// _MACOSX_FIX_LAN - use to toggle LAN related code
|
|
// _MACOSX_FIX_MISC - use to toggle control / memory / other issues
|
|
|
|
#ifdef __APPLE__
|
|
#define GENERIC_ETGCALLFUNCTION
|
|
#define _MACOSX_FIX_ANIM 1
|
|
#define _MACOSX_FIX_LAN 1
|
|
#define _MACOSX_FIX_GL 1
|
|
#define _MACOSX_FIX_MISC 1
|
|
#endif
|