mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-05 15:50:25 +00:00
MacOSX fixes
This commit is contained in:
parent
1eb89dde7f
commit
b52cb62c79
|
@ -79,7 +79,11 @@
|
||||||
|
|
||||||
//common includes
|
//common includes
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <math.h>
|
#ifdef QB64_MACOSX
|
||||||
|
#include <cmath>
|
||||||
|
#else
|
||||||
|
#include <math.h>
|
||||||
|
#endif
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
|
@ -26,12 +26,12 @@
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
#include <X11/Xatom.h>
|
#include <X11/Xatom.h>
|
||||||
|
|
||||||
Display *X11_display=NULL;
|
Display *X11_display=NULL;
|
||||||
Window X11_window;
|
Window X11_window;
|
||||||
|
#endif
|
||||||
|
|
||||||
int32 x11_locked=0;
|
int32 x11_locked=0;
|
||||||
int32 x11_lock_request=0;
|
int32 x11_lock_request=0;
|
||||||
|
|
||||||
void x11_lock(){
|
void x11_lock(){
|
||||||
x11_lock_request=1; while (x11_locked==0) Sleep(1);
|
x11_lock_request=1; while (x11_locked==0) Sleep(1);
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ void x11_unlock(){
|
||||||
x11_locked=0;
|
x11_locked=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Logging for QB64 developers (when an alert() just isn't enough)
|
Logging for QB64 developers (when an alert() just isn't enough)
|
||||||
|
@ -314,6 +314,7 @@ MUTEX* new_mutex(){
|
||||||
#ifdef QB64_LINUX
|
#ifdef QB64_LINUX
|
||||||
pthread_mutex_init(&m->handle, NULL);
|
pthread_mutex_init(&m->handle, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
return m;
|
||||||
}
|
}
|
||||||
|
|
||||||
void free_mutex(MUTEX *mutex){
|
void free_mutex(MUTEX *mutex){
|
||||||
|
|
Loading…
Reference in a new issue