Added unix compatability
This commit is contained in:
@@ -29,7 +29,7 @@ $(OUTDIR):
|
||||
mkdir $(OUTDIR)
|
||||
|
||||
$(OBJDIR)/%.o: %.cpp
|
||||
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
||||
$(CXX) $(CXXFLAGS) -c -o $@ $< -llua
|
||||
|
||||
clean:
|
||||
$(RM) *.o *.a *.exe
|
||||
|
||||
@@ -22,7 +22,11 @@
|
||||
#ifndef REGIONAPI_HPP_
|
||||
#define REGIONAPI_HPP_
|
||||
|
||||
#ifdef __unix__
|
||||
#include "lua.hpp"
|
||||
#else
|
||||
#include "lua/lua.hpp"
|
||||
#endif
|
||||
|
||||
#define TORTUGA_REGION_NAME "Region"
|
||||
LUAMOD_API int openRegionAPI(lua_State* L);
|
||||
|
||||
@@ -22,7 +22,11 @@
|
||||
#ifndef REGIONPAGERAPI_HPP_
|
||||
#define REGIONPAGERAPI_HPP_
|
||||
|
||||
#ifdef __unix__
|
||||
#include "lua.hpp"
|
||||
#else
|
||||
#include "lua/lua.hpp"
|
||||
#endif
|
||||
|
||||
#define TORTUGA_REGION_PAGER_NAME "RegionPager"
|
||||
LUAMOD_API int openRegionPagerAPI(lua_State* L);
|
||||
|
||||
@@ -24,7 +24,11 @@
|
||||
|
||||
#include "region_pager_base.hpp"
|
||||
|
||||
#ifdef __unix__
|
||||
#include "lua.hpp"
|
||||
#else
|
||||
#include "lua/lua.hpp"
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -22,7 +22,12 @@
|
||||
#ifndef TILESHEETAPI_HPP_
|
||||
#define TILESHEETAPI_HPP_
|
||||
|
||||
#ifdef __unix__
|
||||
#include "lua.hpp"
|
||||
#else
|
||||
#include "lua/lua.hpp"
|
||||
#endif
|
||||
|
||||
|
||||
#define TORTUGA_TILE_SHEET_NAME "TileSheet"
|
||||
LUAMOD_API int openTileSheetAPI(lua_State* L);
|
||||
|
||||
Reference in New Issue
Block a user