Merge pull request #2690 from devnexen/master

Make it workable on OpenBSD
This commit is contained in:
Tres Finocchiaro
2016-03-25 11:36:21 -04:00
13 changed files with 29 additions and 14 deletions

View File

@@ -34,7 +34,7 @@
#include <cmath>
using namespace std;
#if defined (LMMS_BUILD_WIN32) || defined (LMMS_BUILD_APPLE) || defined(LMMS_BUILD_HAIKU) || defined (__FreeBSD__)
#if defined (LMMS_BUILD_WIN32) || defined (LMMS_BUILD_APPLE) || defined(LMMS_BUILD_HAIKU) || defined (__FreeBSD__) || defined(__OpenBSD__)
#ifndef isnanf
#define isnanf(x) isnan(x)
#endif

View File

@@ -24,6 +24,10 @@
#define PLATFORM "OS X"
#endif
#ifdef LMMS_BUILD_OPENBSD
#define PLATFORM "OpenBSD"
#endif
#ifdef LMMS_BUILD_WIN32
#define PLATFORM "win32"
#endif