Theoretically resolved jenky cross-compiler compatability
This commit is contained in:
@@ -22,10 +22,10 @@
|
|||||||
#ifndef REGIONAPI_HPP_
|
#ifndef REGIONAPI_HPP_
|
||||||
#define REGIONAPI_HPP_
|
#define REGIONAPI_HPP_
|
||||||
|
|
||||||
#ifdef __unix__
|
#if defined(__MINGW32__)
|
||||||
#include "lua.hpp"
|
#include "lua/lua.hpp"
|
||||||
#else
|
#else
|
||||||
#include "lua/lua.hpp"
|
#include "lua.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define TORTUGA_REGION_NAME "Region"
|
#define TORTUGA_REGION_NAME "Region"
|
||||||
|
|||||||
@@ -22,10 +22,10 @@
|
|||||||
#ifndef REGIONPAGERAPI_HPP_
|
#ifndef REGIONPAGERAPI_HPP_
|
||||||
#define REGIONPAGERAPI_HPP_
|
#define REGIONPAGERAPI_HPP_
|
||||||
|
|
||||||
#ifdef __unix__
|
#if defined(__MINGW32__)
|
||||||
#include "lua.hpp"
|
#include "lua/lua.hpp"
|
||||||
#else
|
#else
|
||||||
#include "lua/lua.hpp"
|
#include "lua.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define TORTUGA_REGION_PAGER_NAME "RegionPager"
|
#define TORTUGA_REGION_PAGER_NAME "RegionPager"
|
||||||
|
|||||||
@@ -24,10 +24,10 @@
|
|||||||
|
|
||||||
#include "region_pager_base.hpp"
|
#include "region_pager_base.hpp"
|
||||||
|
|
||||||
#ifdef __unix__
|
#if defined(__MINGW32__)
|
||||||
#include "lua.hpp"
|
#include "lua/lua.hpp"
|
||||||
#else
|
#else
|
||||||
#include "lua/lua.hpp"
|
#include "lua.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|||||||
@@ -22,10 +22,10 @@
|
|||||||
#ifndef TILESHEETAPI_HPP_
|
#ifndef TILESHEETAPI_HPP_
|
||||||
#define TILESHEETAPI_HPP_
|
#define TILESHEETAPI_HPP_
|
||||||
|
|
||||||
#ifdef __unix__
|
#if defined(__MINGW32__)
|
||||||
#include "lua.hpp"
|
#include "lua/lua.hpp"
|
||||||
#else
|
#else
|
||||||
#include "lua/lua.hpp"
|
#include "lua.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -29,10 +29,8 @@ std::string truncatePath(std::string pathname) {
|
|||||||
pathname.rbegin(),
|
pathname.rbegin(),
|
||||||
pathname.rend(),
|
pathname.rend(),
|
||||||
[](char ch) -> bool {
|
[](char ch) -> bool {
|
||||||
//windows only
|
//windows & unix tested
|
||||||
return ch == '/' || ch == '\\';
|
return ch == '/' || ch == '\\';
|
||||||
// //unix only
|
|
||||||
// return ch == '/';
|
|
||||||
}).base(),
|
}).base(),
|
||||||
pathname.end());
|
pathname.end());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,10 +26,10 @@
|
|||||||
#include "singleton.hpp"
|
#include "singleton.hpp"
|
||||||
#include "manager_interface.hpp"
|
#include "manager_interface.hpp"
|
||||||
|
|
||||||
#ifdef __unix__
|
#if defined(__MINGW32__)
|
||||||
#include "sqlite3.h"
|
#include "sqlite3/sqlite3.h"
|
||||||
#else
|
#else
|
||||||
#include "sqlite3/sqlite3.h"
|
#include "sqlite3.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|||||||
@@ -21,10 +21,10 @@
|
|||||||
*/
|
*/
|
||||||
#include "character_manager.hpp"
|
#include "character_manager.hpp"
|
||||||
|
|
||||||
#ifdef __unix__
|
#if defined(__MINGW32__)
|
||||||
#include "sqlite3.h"
|
#include "sqlite3/sqlite3.h"
|
||||||
#else
|
#else
|
||||||
#include "sqlite3/sqlite3.h"
|
#include "sqlite3.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|||||||
@@ -26,10 +26,10 @@
|
|||||||
#include "singleton.hpp"
|
#include "singleton.hpp"
|
||||||
#include "manager_interface.hpp"
|
#include "manager_interface.hpp"
|
||||||
|
|
||||||
#ifdef __unix__
|
#if defined(__MINGW32__)
|
||||||
#include "sqlite3.h"
|
#include "sqlite3/sqlite3.h"
|
||||||
#else
|
#else
|
||||||
#include "sqlite3/sqlite3.h"
|
#include "sqlite3.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|||||||
+3
-3
@@ -34,10 +34,10 @@
|
|||||||
#define linit_c
|
#define linit_c
|
||||||
#define LUA_LIB
|
#define LUA_LIB
|
||||||
|
|
||||||
#ifdef __unix__
|
#if defined(__MINGW32__)
|
||||||
#include "lua.hpp"
|
#include "lua/lua.hpp"
|
||||||
#else
|
#else
|
||||||
#include "lua/lua.hpp"
|
#include "lua.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "region_api.hpp"
|
#include "region_api.hpp"
|
||||||
|
|||||||
@@ -22,10 +22,10 @@
|
|||||||
#ifndef ROOMAPI_HPP_
|
#ifndef ROOMAPI_HPP_
|
||||||
#define ROOMAPI_HPP_
|
#define ROOMAPI_HPP_
|
||||||
|
|
||||||
#ifdef __unix__
|
#if defined(__MINGW32__)
|
||||||
#include "lua.hpp"
|
#include "lua/lua.hpp"
|
||||||
#else
|
#else
|
||||||
#include "lua/lua.hpp"
|
#include "lua.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define TORTUGA_ROOM_NAME "Room"
|
#define TORTUGA_ROOM_NAME "Room"
|
||||||
|
|||||||
@@ -26,10 +26,10 @@
|
|||||||
#include "singleton.hpp"
|
#include "singleton.hpp"
|
||||||
#include "manager_interface.hpp"
|
#include "manager_interface.hpp"
|
||||||
|
|
||||||
#ifdef __unix__
|
#if defined(__MINGW32__)
|
||||||
#include "lua.hpp"
|
#include "lua/lua.hpp"
|
||||||
#else
|
#else
|
||||||
#include "lua/lua.hpp"
|
#include "lua.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class RoomManager:
|
class RoomManager:
|
||||||
|
|||||||
@@ -22,10 +22,10 @@
|
|||||||
#ifndef ROOMMANAGERAPI_HPP_
|
#ifndef ROOMMANAGERAPI_HPP_
|
||||||
#define ROOMMANAGERAPI_HPP_
|
#define ROOMMANAGERAPI_HPP_
|
||||||
|
|
||||||
#ifdef __unix__
|
#if defined(__MINGW32__)
|
||||||
#include "lua.hpp"
|
#include "lua/lua.hpp"
|
||||||
#else
|
#else
|
||||||
#include "lua/lua.hpp"
|
#include "lua.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define TORTUGA_ROOM_MANAGER_NAME "RoomManager"
|
#define TORTUGA_ROOM_MANAGER_NAME "RoomManager"
|
||||||
|
|||||||
@@ -35,12 +35,12 @@
|
|||||||
#include "singleton.hpp"
|
#include "singleton.hpp"
|
||||||
|
|
||||||
//APIs
|
//APIs
|
||||||
#if __unix__
|
#if defined(__MINGW32__)
|
||||||
#include "lua.hpp"
|
#include "lua/lua.hpp"
|
||||||
#include "sqlite3.h"
|
#include "sqlite3/sqlite3.h"
|
||||||
#else
|
#else
|
||||||
#include "lua/lua.hpp"
|
#include "lua.hpp"
|
||||||
#include "sqlite3/sqlite3.h"
|
#include "sqlite3.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "SDL/SDL.h"
|
#include "SDL/SDL.h"
|
||||||
|
|||||||
@@ -22,10 +22,10 @@
|
|||||||
#ifndef SERVERUTILITY_HPP_
|
#ifndef SERVERUTILITY_HPP_
|
||||||
#define SERVERUTILITY_HPP_
|
#define SERVERUTILITY_HPP_
|
||||||
|
|
||||||
#ifdef __unix__
|
#if defined(__MINGW32__)
|
||||||
#include "sqlite3.h"
|
#include "sqlite3/sqlite3.h"
|
||||||
#else
|
#else
|
||||||
#include "sqlite3/sqlite3.h"
|
#include "sqlite3.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|||||||
Reference in New Issue
Block a user