Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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