Skip to content
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.

Commit

Permalink
Fixed compile when using Lua 5.3
Browse files Browse the repository at this point in the history
It seems like properly upgrading to Lua 5.3 would affect quite a few
small function calls, but fortunately compatibility can be achieved with
just a define for now.
  • Loading branch information
bjorn committed Jun 7, 2015
1 parent 441ff98 commit caf61e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/scripting/lua.cpp
Expand Up @@ -22,11 +22,6 @@

#include <cassert>

extern "C" {
#include <lualib.h>
#include <lauxlib.h>
}

#include "common/defines.h"
#include "common/resourcemanager.h"
#include "game-server/accountconnection.h"
Expand Down
3 changes: 3 additions & 0 deletions src/scripting/luautil.h
Expand Up @@ -24,6 +24,9 @@
#include "scripting/script.h"

extern "C" {
// Quick and dirty compatibility with Lua 5.3
#define LUA_COMPAT_APIINTCASTS

#include <lualib.h>
#include <lauxlib.h>
}
Expand Down

0 comments on commit caf61e7

Please sign in to comment.