Merge pull request #1947 from Prcuvu/lua_error
Force Lua to be compiled as C++ code when using MSVC
This commit is contained in:
@@ -5,10 +5,14 @@
|
||||
#include "RageUtil.h"
|
||||
#include <memory>
|
||||
|
||||
#ifndef _MSC_VER
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
#include "../extern/lua-5.1/src/lua.h"
|
||||
#ifndef _MSC_VER
|
||||
}
|
||||
#endif
|
||||
|
||||
/** @brief A general foreach loop for enumerators, going up to a max value. */
|
||||
#define FOREACH_ENUM_N( e, max, var ) for( e var=(e)0; var<max; enum_add<e>( var, +1 ) )
|
||||
|
||||
@@ -8,12 +8,16 @@ class RageMutex;
|
||||
class XNode;
|
||||
class LuaReference;
|
||||
|
||||
#ifndef _MSC_VER
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
#include "../extern/lua-5.1/src/lua.h"
|
||||
#include "../extern/lua-5.1/src/lualib.h"
|
||||
#include "../extern/lua-5.1/src/lauxlib.h"
|
||||
#ifndef _MSC_VER
|
||||
}
|
||||
#endif
|
||||
|
||||
// For Dialog::Result
|
||||
#include "arch/Dialog/Dialog.h"
|
||||
|
||||
Reference in New Issue
Block a user