Theoretically resolved jenky cross-compiler compatability
This commit is contained in:
@@ -22,10 +22,10 @@
|
||||
#ifndef REGIONAPI_HPP_
|
||||
#define REGIONAPI_HPP_
|
||||
|
||||
#ifdef __unix__
|
||||
#include "lua.hpp"
|
||||
#if defined(__MINGW32__)
|
||||
#include "lua/lua.hpp"
|
||||
#else
|
||||
#include "lua/lua.hpp"
|
||||
#include "lua.hpp"
|
||||
#endif
|
||||
|
||||
#define TORTUGA_REGION_NAME "Region"
|
||||
|
||||
@@ -22,10 +22,10 @@
|
||||
#ifndef REGIONPAGERAPI_HPP_
|
||||
#define REGIONPAGERAPI_HPP_
|
||||
|
||||
#ifdef __unix__
|
||||
#include "lua.hpp"
|
||||
#if defined(__MINGW32__)
|
||||
#include "lua/lua.hpp"
|
||||
#else
|
||||
#include "lua/lua.hpp"
|
||||
#include "lua.hpp"
|
||||
#endif
|
||||
|
||||
#define TORTUGA_REGION_PAGER_NAME "RegionPager"
|
||||
|
||||
@@ -24,10 +24,10 @@
|
||||
|
||||
#include "region_pager_base.hpp"
|
||||
|
||||
#ifdef __unix__
|
||||
#include "lua.hpp"
|
||||
#if defined(__MINGW32__)
|
||||
#include "lua/lua.hpp"
|
||||
#else
|
||||
#include "lua/lua.hpp"
|
||||
#include "lua.hpp"
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
|
||||
@@ -22,10 +22,10 @@
|
||||
#ifndef TILESHEETAPI_HPP_
|
||||
#define TILESHEETAPI_HPP_
|
||||
|
||||
#ifdef __unix__
|
||||
#include "lua.hpp"
|
||||
#if defined(__MINGW32__)
|
||||
#include "lua/lua.hpp"
|
||||
#else
|
||||
#include "lua/lua.hpp"
|
||||
#include "lua.hpp"
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -29,10 +29,8 @@ std::string truncatePath(std::string pathname) {
|
||||
pathname.rbegin(),
|
||||
pathname.rend(),
|
||||
[](char ch) -> bool {
|
||||
//windows only
|
||||
//windows & unix tested
|
||||
return ch == '/' || ch == '\\';
|
||||
// //unix only
|
||||
// return ch == '/';
|
||||
}).base(),
|
||||
pathname.end());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user