--- CEGUILua.h Mi Jul 9 18:24:49 2008 +++ CEGUILua.h Do Jan 29 10:18:14 2009 @@ -34,11 +34,15 @@ /************************************************************************* Import / Export control macros *************************************************************************/ -#if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined(CEGUI_STATIC) +#if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined(CEGUILUA_STATIC) # ifdef CEGUILUA_EXPORTS # define CEGUILUA_API __declspec(dllexport) # else -# define CEGUILUA_API __declspec(dllimport) +# if defined( __MINGW32__ ) +# define CEGUILUA_API +# else +# define CEGUILUA_API __declspec(dllimport) +# endif # endif #else # define CEGUILUA_API --- CEGUILuaFunctor.cpp Mi Jul 9 18:25:01 2008 +++ CEGUILuaFunctor.cpp Do Jan 29 10:26:27 2009 @@ -39,7 +39,7 @@ #include "lauxlib.h" } -#include "tolua++.h" +#include "tolua/tolua++.h" // Start of CEGUI namespace section namespace CEGUI --- CEGUILua.cpp Mi Jul 9 18:25:01 2008 +++ CEGUILua.cpp Do Jan 29 10:24:53 2009 @@ -27,10 +27,6 @@ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. ***************************************************************************/ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - #include "CEGUI.h" #include "CEGUIConfig.h" #include "CEGUIPropertyHelper.h" @@ -45,7 +41,7 @@ #include "lauxlib.h" } -#include "tolua++.h" +#include "tolua/tolua++.h" // prototype for bindings initialisation function int tolua_CEGUI_open(lua_State* tolua_S); @@ -60,7 +56,7 @@ *************************************************************************/ LuaScriptModule::LuaScriptModule() { - #if CEGUI_LUA_VER >= 51 + #if LUA_VERSION_NUM >= 501 static const luaL_Reg lualibs[] = { {"", luaopen_base}, {LUA_LOADLIBNAME, luaopen_package}, @@ -74,14 +70,14 @@ #endif {0, 0} }; - #endif /* CEGUI_LUA_VER >= 51 */ + #endif /* LUA_VERSION_NUM >= 501 */ // create a lua state d_ownsState = true; d_state = lua_open(); // init all standard libraries - #if CEGUI_LUA_VER >= 51 + #if LUA_VERSION_NUM >= 501 const luaL_Reg *lib = lualibs; for (; lib->func; lib++) { @@ -89,7 +85,7 @@ lua_pushstring(d_state, lib->name); lua_call(d_state, 1, 0); } - #else /* CEGUI_LUA_VER >= 51 */ + #else /* LUA_VERSION_NUM >= 501 */ luaopen_base(d_state); luaopen_io(d_state); luaopen_string(d_state); @@ -98,7 +94,7 @@ #if defined(DEBUG) || defined (_DEBUG) luaopen_debug(d_state); #endif - #endif /* CEGUI_LUA_VER >= 51 */ + #endif /* LUA_VERSION_NUM >= 501 */ setModuleIdentifierString(); }