1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-03 07:41:21 +00:00

MacOSX fixes

This commit is contained in:
Galleon 2015-03-07 06:31:54 -08:00
parent 1eb89dde7f
commit b52cb62c79
2 changed files with 9 additions and 4 deletions

View file

@ -79,7 +79,11 @@
//common includes
#include <stdio.h>
#include <math.h>
#ifdef QB64_MACOSX
#include <cmath>
#else
#include <math.h>
#endif
#include <time.h>
#include <iostream>
#include <fstream>

View file

@ -26,12 +26,12 @@
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
Display *X11_display=NULL;
Window X11_window;
#endif
int32 x11_locked=0;
int32 x11_lock_request=0;
void x11_lock(){
x11_lock_request=1; while (x11_locked==0) Sleep(1);
}
@ -39,7 +39,7 @@ void x11_unlock(){
x11_locked=0;
}
#endif
/*
Logging for QB64 developers (when an alert() just isn't enough)
@ -314,6 +314,7 @@ MUTEX* new_mutex(){
#ifdef QB64_LINUX
pthread_mutex_init(&m->handle, NULL);
#endif
return m;
}
void free_mutex(MUTEX *mutex){