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