Misc tweaks to get OS X target building

This commit is contained in:
Aaron Culliney 2014-06-21 14:26:39 -07:00
parent ed8b41c9a0
commit a9d094c112
3 changed files with 6 additions and 1 deletions

View File

@ -1066,12 +1066,14 @@ void show_disk_info() {
clear_debugger_screen () - clears the screen of graphics artifacts. clear_debugger_screen () - clears the screen of graphics artifacts.
------------------------------------------------------------------------- */ ------------------------------------------------------------------------- */
void clear_debugger_screen() { void clear_debugger_screen() {
#ifdef INTERFACE_CLASSIC
int i; int i;
video_setpage( 0 ); video_setpage( 0 );
for (i = 0; i < 24; i++) for (i = 0; i < 24; i++)
{ {
c_interface_print(0, i, 2, screen[ i ] ); c_interface_print(0, i, 2, screen[ i ] );
} }
#endif
} }
/* ------------------------------------------------------------------------- /* -------------------------------------------------------------------------

View File

@ -623,7 +623,7 @@ void c_initialize_firsttime()
reinitialize(); reinitialize();
} }
#if !defined(TESTING) #if !defined(TESTING) && !defined(__APPLE__)
static void main_thread(void *dummyptr) { static void main_thread(void *dummyptr) {
struct timespec sleeptime = { .tv_sec=0, .tv_nsec=8333333 }; // 120Hz struct timespec sleeptime = { .tv_sec=0, .tv_nsec=8333333 }; // 120Hz

View File

@ -17,6 +17,9 @@
*/ */
#include "common.h" #include "common.h"
#ifdef __APPLE__
#include "darwin-shim.h"
#endif
#define EXECUTION_PERIOD_NSECS 1000000 // AppleWin: nExecutionPeriodUsec #define EXECUTION_PERIOD_NSECS 1000000 // AppleWin: nExecutionPeriodUsec