mirror of https://github.com/mgba-emu/mgba.git
All: OpenBSD build fixes
This commit is contained in:
parent
54bff2a1ca
commit
2b80e3573f
src/platform
|
@ -79,7 +79,7 @@ static inline int ThreadJoin(Thread thread) {
|
||||||
static inline int ThreadSetName(const char* name) {
|
static inline int ThreadSetName(const char* name) {
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
return pthread_setname_np(name);
|
return pthread_setname_np(name);
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||||
pthread_set_name_np(pthread_self(), name);
|
pthread_set_name_np(pthread_self(), name);
|
||||||
return 0;
|
return 0;
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -40,8 +40,8 @@ extern "C" {
|
||||||
|
|
||||||
using namespace QGBA;
|
using namespace QGBA;
|
||||||
|
|
||||||
#ifdef __WIN32
|
#if defined(__WIN32) || defined(__OpenBSD__)
|
||||||
// This is a macro everywhere except MinGW, it seems
|
// This is a macro everywhere except MinGW and OpenBSD, it seems
|
||||||
using std::isnan;
|
using std::isnan;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue