--- CEGUILua.cpp	Sun Jan 25 18:30:39 2009
+++ CEGUILua.cpp	Thu Jan 29 10:25:05 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 "CEGUIPropertyHelper.h"
 #include "CEGUILua.h"
@@ -44,7 +40,7 @@
 #include "lauxlib.h"
 }
 
-#include "tolua++.h"
+#include "tolua/tolua++.h"
 
 // prototype for bindings initialisation function
 int tolua_CEGUI_open(lua_State* tolua_S);
@@ -59,7 +55,7 @@
 *************************************************************************/
 LuaScriptModule::LuaScriptModule()
 {
-    #if CEGUI_LUA_VER >= 51
+    #if LUA_VERSION_NUM >= 501
         static const luaL_Reg lualibs[] = {
             {"", luaopen_base},
             {LUA_LOADLIBNAME, luaopen_package},
@@ -73,14 +69,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++)
             {
@@ -88,7 +84,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);
@@ -97,7 +93,7 @@
         #if defined(DEBUG) || defined (_DEBUG)
             luaopen_debug(d_state);
         #endif
-    #endif /* CEGUI_LUA_VER >= 51 */
+    #endif /* LUA_VERSION_NUM >= 501 */
 
     setModuleIdentifierString();
 }
--- CEGUILua.h	Wed Jul  9 18:24:49 2008
+++ CEGUILua.h	Thu Jan 29 10:17:07 2009
@@ -38,7 +38,11 @@
 #   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	Wed Jul  9 18:25:02 2008
+++ CEGUILuaFunctor.cpp	Thu Jan 29 10:26:58 2009
@@ -39,7 +39,7 @@
 #include "lauxlib.h"
 }
 
-#include "tolua++.h"
+#include "tolua/tolua++.h"
 
 // Start of CEGUI namespace section
 namespace CEGUI
