Changes to work with Mac

Changes include:
- Updating Project
- fixing sendto declaration
- Fixed some bugs in #if Mac sections
- Removed unneeded #includes (my compiler didn’t like them)
This commit is contained in:
Chris Teubert
2015-04-16 12:58:49 -07:00
parent 1a3f658774
commit e60dde457c
8 changed files with 58 additions and 26 deletions

View File

@@ -23,6 +23,7 @@
#include <cmath>
#include <unordered_map>
using namespace std;
namespace XPC
{
static std::unordered_map<DREF, XPLMDataRef> drefs;
@@ -542,8 +543,8 @@ namespace XPC
Log::WriteLine("[FLAP] ERROR: Value must be a number (NaN received)");
return;
}
value = max(value, 0);
value = min(value, 1);
value = fmaxl(value, 0);
value = fminl(value, 1);
Set(DREF::FlapSetting, value);
Set(DREF::FlapActual, value);