Merge branch 'MacFixes'
Conflicts: src/DeadlockDetect.cpp src/World.cpp
This commit is contained in:
commit
b449ad8613
@ -2,6 +2,7 @@
|
||||
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
||||
|
||||
#include "DeprecatedBindings.h"
|
||||
#undef TOLUA_TEMPLATE_BIND
|
||||
#include "tolua++/include/tolua++.h"
|
||||
|
||||
#include "Plugin.h"
|
||||
|
@ -11,6 +11,7 @@ extern "C"
|
||||
#include "lua/src/lualib.h"
|
||||
}
|
||||
|
||||
#undef TOLUA_TEMPLATE_BIND
|
||||
#include "tolua++/include/tolua++.h"
|
||||
#include "Bindings.h"
|
||||
#include "ManualBindings.h"
|
||||
|
@ -2,6 +2,7 @@
|
||||
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
||||
|
||||
#include "ManualBindings.h"
|
||||
#undef TOLUA_TEMPLATE_BIND
|
||||
#include "tolua++/include/tolua++.h"
|
||||
|
||||
#include "Plugin.h"
|
||||
|
@ -5,7 +5,11 @@
|
||||
|
||||
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
||||
|
||||
#ifdef __APPLE__
|
||||
#define LUA_USE_MACOSX
|
||||
#else
|
||||
#define LUA_USE_POSIX
|
||||
#endif
|
||||
#include "PluginLua.h"
|
||||
#include "../CommandOutput.h"
|
||||
|
||||
@ -14,6 +18,7 @@ extern "C"
|
||||
#include "lua/src/lualib.h"
|
||||
}
|
||||
|
||||
#undef TOLUA_TEMPLATE_BIND
|
||||
#include "tolua++/include/tolua++.h"
|
||||
|
||||
|
||||
|
@ -122,5 +122,3 @@ void cBoat::HandleSpeedFromAttachee(float a_Forward, float a_Sideways)
|
||||
|
||||
AddSpeed(ToAddSpeed);
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,3 @@ public:
|
||||
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL) override;
|
||||
virtual void Attack(float a_Dt) override;
|
||||
} ;
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@ AString GetOSErrorString( int a_ErrNo )
|
||||
|
||||
// According to http://linux.die.net/man/3/strerror_r there are two versions of strerror_r():
|
||||
|
||||
#if ( _GNU_SOURCE ) && !defined(ANDROID_NDK) // GNU version of strerror_r()
|
||||
#if !defined(__APPLE__) && ( _GNU_SOURCE ) && !defined(ANDROID_NDK) // GNU version of strerror_r()
|
||||
|
||||
char * res = strerror_r( errno, buffer, ARRAYCOUNT(buffer) );
|
||||
if( res != NULL )
|
||||
|
Loading…
Reference in New Issue
Block a user