Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/external/ceguilua/ceguilua-0.6.0/ceguilua/changes_orxonox.diff @ 7163

Last change on this file since 7163 was 7163, checked in by dafrick, 14 years ago

Merged presentation3 branch into trunk.

  • Property svn:eol-style set to native
File size: 2.9 KB
RevLine 
[2608]1--- CEGUILua.cpp        Sun Jan 25 18:30:39 2009
2+++ CEGUILua.cpp        Thu Jan 29 10:25:05 2009
3@@ -27,10 +27,6 @@
[2705]4  *   ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
5  *   OTHER DEALINGS IN THE SOFTWARE.
6  ***************************************************************************/
7-#ifdef HAVE_CONFIG_H
8-#   include "config.h"
9-#endif
10-
11 #include "CEGUI.h"
12 #include "CEGUIPropertyHelper.h"
13 #include "CEGUILua.h"
[2608]14@@ -44,7 +40,7 @@
[2705]15 #include "lauxlib.h"
16 }
17 
18-#include "tolua++.h"
19+#include "tolua/tolua++.h"
20 
21 // prototype for bindings initialisation function
22 int tolua_CEGUI_open(lua_State* tolua_S);
[2608]23@@ -59,7 +55,7 @@
[2705]24 *************************************************************************/
25 LuaScriptModule::LuaScriptModule()
26 {
27-    #if CEGUI_LUA_VER >= 51
28+    #if LUA_VERSION_NUM >= 501
29         static const luaL_Reg lualibs[] = {
30             {"", luaopen_base},
31             {LUA_LOADLIBNAME, luaopen_package},
[2608]32@@ -73,14 +69,14 @@
[2705]33         #endif
34             {0, 0}
35         };
36-    #endif /* CEGUI_LUA_VER >= 51 */
37+    #endif /* LUA_VERSION_NUM >= 501 */
38 
39     // create a lua state
40     d_ownsState = true;
41     d_state = lua_open();
42 
43     // init all standard libraries
44-    #if CEGUI_LUA_VER >= 51
45+    #if LUA_VERSION_NUM >= 501
46             const luaL_Reg *lib = lualibs;
47             for (; lib->func; lib++)
48             {
[2608]49@@ -88,7 +84,7 @@
[2705]50                 lua_pushstring(d_state, lib->name);
51                 lua_call(d_state, 1, 0);
52             }
53-    #else /* CEGUI_LUA_VER >= 51 */
54+    #else /* LUA_VERSION_NUM >= 501 */
55         luaopen_base(d_state);
56         luaopen_io(d_state);
57         luaopen_string(d_state);
[2608]58@@ -97,7 +93,7 @@
[2705]59         #if defined(DEBUG) || defined (_DEBUG)
60             luaopen_debug(d_state);
61         #endif
62-    #endif /* CEGUI_LUA_VER >= 51 */
63+    #endif /* LUA_VERSION_NUM >= 501 */
64 
65     setModuleIdentifierString();
66 }
[2608]67--- CEGUILua.h  Wed Jul  9 18:24:49 2008
68+++ CEGUILua.h  Thu Jan 29 10:17:07 2009
[7163]69@@ -34,11 +34,15 @@
70 /*************************************************************************
71        Import / Export control macros
72 *************************************************************************/
73-#if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined(CEGUI_STATIC)
74+#if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined(CEGUILUA_STATIC)
[2705]75 #   ifdef CEGUILUA_EXPORTS
76 #       define CEGUILUA_API __declspec(dllexport)
77 #   else
78-#       define CEGUILUA_API __declspec(dllimport)
79+#       if defined( __MINGW32__ )
80+#           define CEGUILUA_API
81+#       else
82+#           define CEGUILUA_API __declspec(dllimport)
83+#       endif
84 #   endif
85 #else
86 #   define CEGUILUA_API
[2608]87--- CEGUILuaFunctor.cpp Wed Jul  9 18:25:02 2008
88+++ CEGUILuaFunctor.cpp Thu Jan 29 10:26:58 2009
89@@ -39,7 +39,7 @@
[2705]90 #include "lauxlib.h"
91 }
92 
93-#include "tolua++.h"
94+#include "tolua/tolua++.h"
95 
96 // Start of CEGUI namespace section
97 namespace CEGUI
Note: See TracBrowser for help on using the repository browser.