Mac fixes (#1776)
* macOS build fixes (#1773) * macOS build fixes Add missing headers Threads_Pthreads: do not call pthread_setname_np() on macOS as it does not do the same as on Linux DebugStr() -> os_log() * Make the project build with Makefiles on macOS * Fix getting modifier key state on Mac (#1774) We really need to clean up all Carbon calls here (many will go away when the project switches to SDL2 for all platforms) * Fix Xcode build; bump minimum version of macOS (#1775) * Build fixes for the "Unix Makefiles" generator Pass CMAKE_BUILD_TYPE to the external projects * Fix indent
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "ProductInfo.h"
|
||||
#include "arch/ArchHooks/ArchHooks.h"
|
||||
#include <CoreServices/CoreServices.h>
|
||||
#include <os/log.h>
|
||||
#include <sys/types.h>
|
||||
#if defined(HAVE_UNISTD_H)
|
||||
#include <unistd.h>
|
||||
@@ -97,13 +98,13 @@ bool CrashHandler::IsDebuggerPresent()
|
||||
|
||||
void CrashHandler::DebugBreak()
|
||||
{
|
||||
DebugStr( "\pDebugBreak()" );
|
||||
os_log(OS_LOG_DEFAULT, "DebugBreak()");
|
||||
}
|
||||
|
||||
/*
|
||||
* (c) 2003-2006 Steve Checkoway
|
||||
* All rights reserved.
|
||||
*
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
#include <mach/thread_act.h>
|
||||
#include <mach/mach_init.h>
|
||||
#include <mach/mach_error.h>
|
||||
#include "Backtrace.h"
|
||||
#include "global.h"
|
||||
#include "Backtrace.hpp"
|
||||
|
||||
bool SuspendThread( uint64_t threadHandle )
|
||||
{
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#include "ProductInfo.h"
|
||||
#include "arch/ArchHooks/ArchHooks.h"
|
||||
#include "StepMania.h"
|
||||
|
||||
@interface NSApplication (PrivateShutUpWarning)
|
||||
- (void) setAppleMenu:(NSMenu *)menu;
|
||||
|
||||
Reference in New Issue
Block a user