Removed preprocessor switch surrounding library headers

This commit is contained in:
Kayne Ruse
2015-01-03 03:20:13 +11:00
parent 0344fe0d6d
commit 877c0f59d3
27 changed files with 29 additions and 139 deletions
-4
View File
@@ -22,11 +22,7 @@
#ifndef MAPSYSTEMAPI_HPP_ #ifndef MAPSYSTEMAPI_HPP_
#define MAPSYSTEMAPI_APP_ #define MAPSYSTEMAPI_APP_
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp" #include "lua.hpp"
#endif
#define TORTUGA_MAP_SYSTEM_API "map_system" #define TORTUGA_MAP_SYSTEM_API "map_system"
LUAMOD_API int openMapSystemAPI(lua_State* L); LUAMOD_API int openMapSystemAPI(lua_State* L);
-4
View File
@@ -22,11 +22,7 @@
#ifndef REGIONAPI_HPP_ #ifndef REGIONAPI_HPP_
#define REGIONAPI_HPP_ #define REGIONAPI_HPP_
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp" #include "lua.hpp"
#endif
#define TORTUGA_REGION_NAME "region" #define TORTUGA_REGION_NAME "region"
LUAMOD_API int openRegionAPI(lua_State* L); LUAMOD_API int openRegionAPI(lua_State* L);
-4
View File
@@ -22,11 +22,7 @@
#ifndef REGIONPAGERAPI_HPP_ #ifndef REGIONPAGERAPI_HPP_
#define REGIONPAGERAPI_HPP_ #define REGIONPAGERAPI_HPP_
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp" #include "lua.hpp"
#endif
#define TORTUGA_REGION_PAGER_NAME "region_pager" #define TORTUGA_REGION_PAGER_NAME "region_pager"
LUAMOD_API int openRegionPagerAPI(lua_State* L); LUAMOD_API int openRegionPagerAPI(lua_State* L);
-4
View File
@@ -24,11 +24,7 @@
#include "region_pager_base.hpp" #include "region_pager_base.hpp"
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp" #include "lua.hpp"
#endif
#include <functional> #include <functional>
#include <string> #include <string>
-4
View File
@@ -22,11 +22,7 @@
#ifndef TILESHEETAPI_HPP_ #ifndef TILESHEETAPI_HPP_
#define TILESHEETAPI_HPP_ #define TILESHEETAPI_HPP_
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp" #include "lua.hpp"
#endif
#define TORTUGA_TILE_SHEET_NAME "tile_sheet" #define TORTUGA_TILE_SHEET_NAME "tile_sheet"
LUAMOD_API int openTileSheetAPI(lua_State* L); LUAMOD_API int openTileSheetAPI(lua_State* L);
-4
View File
@@ -25,11 +25,7 @@
#include "account_data.hpp" #include "account_data.hpp"
#include "singleton.hpp" #include "singleton.hpp"
#if defined(__MINGW32__)
#include "sqlite3/sqlite3.h"
#else
#include "sqlite3.h" #include "sqlite3.h"
#endif
#include <functional> #include <functional>
#include <map> #include <map>
-4
View File
@@ -22,11 +22,7 @@
#ifndef CHARACTERAPI_HPP_ #ifndef CHARACTERAPI_HPP_
#define CHARACTERAPI_HPP_ #define CHARACTERAPI_HPP_
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp" #include "lua.hpp"
#endif
#define TORTUGA_CHARACTER_API "character" #define TORTUGA_CHARACTER_API "character"
LUAMOD_API int openCharacterAPI(lua_State* L); LUAMOD_API int openCharacterAPI(lua_State* L);
-4
View File
@@ -21,11 +21,7 @@
*/ */
#include "character_manager.hpp" #include "character_manager.hpp"
#if defined(__MINGW32__)
#include "sqlite3/sqlite3.h"
#else
#include "sqlite3.h" #include "sqlite3.h"
#endif
#include <algorithm> #include <algorithm>
#include <stdexcept> #include <stdexcept>
-4
View File
@@ -25,11 +25,7 @@
#include "character_data.hpp" #include "character_data.hpp"
#include "singleton.hpp" #include "singleton.hpp"
#if defined(__MINGW32__)
#include "sqlite3/sqlite3.h"
#else
#include "sqlite3.h" #include "sqlite3.h"
#endif
#include <functional> #include <functional>
#include <map> #include <map>
@@ -22,11 +22,7 @@
#ifndef CHARACTERMANAGERAPI_HPP_ #ifndef CHARACTERMANAGERAPI_HPP_
#define CHARACTERMANAGERAPI_HPP_ #define CHARACTERMANAGERAPI_HPP_
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp" #include "lua.hpp"
#endif
#define TORTUGA_CHARACTER_MANAGER_API "character_manager" #define TORTUGA_CHARACTER_MANAGER_API "character_manager"
LUAMOD_API int openCharacterManagerAPI(lua_State* L); LUAMOD_API int openCharacterManagerAPI(lua_State* L);
-4
View File
@@ -22,11 +22,7 @@
#ifndef ENTITYAPI_HPP_ #ifndef ENTITYAPI_HPP_
#define ENTITYAPI_HPP_ #define ENTITYAPI_HPP_
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp" #include "lua.hpp"
#endif
#define TORTUGA_ENTITY_API "entity" #define TORTUGA_ENTITY_API "entity"
LUAMOD_API int openEntityAPI(lua_State* L); LUAMOD_API int openEntityAPI(lua_State* L);
-4
View File
@@ -34,11 +34,7 @@
#define linit_c #define linit_c
#define LUA_LIB #define LUA_LIB
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp" #include "lua.hpp"
#endif
#include "map_system_api.hpp" #include "map_system_api.hpp"
#include "room_system_api.hpp" #include "room_system_api.hpp"
-4
View File
@@ -22,11 +22,7 @@
#ifndef MONSTERAPI_HPP_ #ifndef MONSTERAPI_HPP_
#define MONSTERAPI_HPP_ #define MONSTERAPI_HPP_
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp" #include "lua.hpp"
#endif
#define TORTUGA_MONSTER_API "monster" #define TORTUGA_MONSTER_API "monster"
LUAMOD_API int openMonsterAPI(lua_State* L); LUAMOD_API int openMonsterAPI(lua_State* L);
-5
View File
@@ -25,13 +25,8 @@
#include "monster_data.hpp" #include "monster_data.hpp"
#include "singleton.hpp" #include "singleton.hpp"
#ifdef __unix__
#include "lua.hpp" #include "lua.hpp"
#include "sqlite3.h" #include "sqlite3.h"
#else
#include "lua/lua.hpp"
#include "sqlite3/sqlite3.h"
#endif
#include <functional> #include <functional>
#include <map> #include <map>
-4
View File
@@ -22,11 +22,7 @@
#ifndef MONSTERMANAGERAPI_HPP_ #ifndef MONSTERMANAGERAPI_HPP_
#define MONSTERMANAGERAPI_HPP_ #define MONSTERMANAGERAPI_HPP_
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp" #include "lua.hpp"
#endif
#define TORTUGA_MONSTER_MANAGER_API "monster_manager" #define TORTUGA_MONSTER_MANAGER_API "monster_manager"
LUAMOD_API int openMonsterManagerAPI(lua_State* L); LUAMOD_API int openMonsterManagerAPI(lua_State* L);
-4
View File
@@ -22,11 +22,7 @@
#ifndef ROOMAPI_HPP_ #ifndef ROOMAPI_HPP_
#define ROOMAPI_HPP_ #define ROOMAPI_HPP_
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp" #include "lua.hpp"
#endif
#define TORTUGA_ROOM_API "room" #define TORTUGA_ROOM_API "room"
LUAMOD_API int openRoomAPI(lua_State* L); LUAMOD_API int openRoomAPI(lua_State* L);
-4
View File
@@ -25,11 +25,7 @@
#include "entity.hpp" #include "entity.hpp"
#include "region_pager_lua.hpp" #include "region_pager_lua.hpp"
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp" #include "lua.hpp"
#endif
#include <list> #include <list>
#include <string> #include <string>
-4
View File
@@ -25,11 +25,7 @@
#include "room_data.hpp" #include "room_data.hpp"
#include "singleton.hpp" #include "singleton.hpp"
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp" #include "lua.hpp"
#endif
#include <functional> #include <functional>
#include <map> #include <map>
-4
View File
@@ -22,11 +22,7 @@
#ifndef ROOMMANAGERAPI_HPP_ #ifndef ROOMMANAGERAPI_HPP_
#define ROOMMANAGERAPI_HPP_ #define ROOMMANAGERAPI_HPP_
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp" #include "lua.hpp"
#endif
#define TORTUGA_ROOM_MANAGER_API "room_manager" #define TORTUGA_ROOM_MANAGER_API "room_manager"
LUAMOD_API int openRoomManagerAPI(lua_State* L); LUAMOD_API int openRoomManagerAPI(lua_State* L);
-4
View File
@@ -22,11 +22,7 @@
#ifndef ROOMSYSTEMAPI_HPP_ #ifndef ROOMSYSTEMAPI_HPP_
#define ROOMSYSTEMAPI_HPP_ #define ROOMSYSTEMAPI_HPP_
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp" #include "lua.hpp"
#endif
#define TORTUGA_ROOM_SYSTEM_API "room_system" #define TORTUGA_ROOM_SYSTEM_API "room_system"
LUAMOD_API int openRoomSystemAPI(lua_State* L); LUAMOD_API int openRoomSystemAPI(lua_State* L);
-5
View File
@@ -39,13 +39,8 @@
#include "singleton.hpp" #include "singleton.hpp"
//APIs //APIs
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#include "sqlite3/sqlite3.h"
#else
#include "lua.hpp" #include "lua.hpp"
#include "sqlite3.h" #include "sqlite3.h"
#endif
#include "SDL/SDL.h" #include "SDL/SDL.h"
-4
View File
@@ -22,11 +22,7 @@
#ifndef SERVERUTILITY_HPP_ #ifndef SERVERUTILITY_HPP_
#define SERVERUTILITY_HPP_ #define SERVERUTILITY_HPP_
#if defined(__MINGW32__)
#include "sqlite3/sqlite3.h"
#else
#include "sqlite3.h" #include "sqlite3.h"
#endif
#include <string> #include <string>
-4
View File
@@ -22,11 +22,7 @@
#ifndef WAYPOINTAPI_HPP_ #ifndef WAYPOINTAPI_HPP_
#define WAYPOINTAPI_HPP_ #define WAYPOINTAPI_HPP_
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp" #include "lua.hpp"
#endif
#define TORTUGA_WAYPOINT_API "waypoint" #define TORTUGA_WAYPOINT_API "waypoint"
LUAMOD_API int openWaypointAPI(lua_State* L); LUAMOD_API int openWaypointAPI(lua_State* L);
-4
View File
@@ -24,11 +24,7 @@
#include "entity.hpp" #include "entity.hpp"
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp" #include "lua.hpp"
#endif
#include <string> #include <string>
-4
View File
@@ -26,11 +26,7 @@
#include "singleton.hpp" #include "singleton.hpp"
#include "vector2.hpp" #include "vector2.hpp"
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp" #include "lua.hpp"
#endif
#include <functional> #include <functional>
#include <map> #include <map>
@@ -22,11 +22,7 @@
#ifndef WAYPOINTMANAGERAPI_HPP_ #ifndef WAYPOINTMANAGERAPI_HPP_
#define WAYPOINTMANAGERAPI_HPP_ #define WAYPOINTMANAGERAPI_HPP_
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp" #include "lua.hpp"
#endif
#define TORTUGA_WAYPOINT_MANAGER_API "waypoint_manager" #define TORTUGA_WAYPOINT_MANAGER_API "waypoint_manager"
LUAMOD_API int openWaypointManagerAPI(lua_State* L); LUAMOD_API int openWaypointManagerAPI(lua_State* L);
-4
View File
@@ -22,11 +22,7 @@
#ifndef WAYPOINTSYSTEMAPI_HPP_ #ifndef WAYPOINTSYSTEMAPI_HPP_
#define WAYPOINTSYSTEMAPI_HPP_ #define WAYPOINTSYSTEMAPI_HPP_
#if defined(__MINGW32__)
#include "lua/lua.hpp"
#else
#include "lua.hpp" #include "lua.hpp"
#endif
#define TORTUGA_WAYPOINT_SYSTEM_API "waypoint_system" #define TORTUGA_WAYPOINT_SYSTEM_API "waypoint_system"
LUAMOD_API int openWaypointSystemAPI(lua_State* L); LUAMOD_API int openWaypointSystemAPI(lua_State* L);