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
  • CEGUILua.cpp

     
    2727 *   ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
    2828 *   OTHER DEALINGS IN THE SOFTWARE.
    2929 ***************************************************************************/
    30 #ifdef HAVE_CONFIG_H
    31 #   include "config.h"
    32 #endif
    33 
    3430#include "CEGUI.h"
    3531#include "CEGUIPropertyHelper.h"
    3632#include "CEGUILua.h"
     
    4440#include "lauxlib.h"
    4541}
    4642
    47 #include "tolua++.h"
     43#include "tolua/tolua++.h"
    4844
    4945// prototype for bindings initialisation function
    5046int tolua_CEGUI_open(lua_State* tolua_S);
     
    5955*************************************************************************/
    6056LuaScriptModule::LuaScriptModule()
    6157{
    62     #if CEGUI_LUA_VER >= 51
     58    #if LUA_VERSION_NUM >= 501
    6359        static const luaL_Reg lualibs[] = {
    6460            {"", luaopen_base},
    6561            {LUA_LOADLIBNAME, luaopen_package},
     
    7369        #endif
    7470            {0, 0}
    7571        };
    76     #endif /* CEGUI_LUA_VER >= 51 */
     72    #endif /* LUA_VERSION_NUM >= 501 */
    7773
    7874    // create a lua state
    7975    d_ownsState = true;
    8076    d_state = lua_open();
    8177
    8278    // init all standard libraries
    83     #if CEGUI_LUA_VER >= 51
     79    #if LUA_VERSION_NUM >= 501
    8480            const luaL_Reg *lib = lualibs;
    8581            for (; lib->func; lib++)
    8682            {
     
    8884                lua_pushstring(d_state, lib->name);
    8985                lua_call(d_state, 1, 0);
    9086            }
    91     #else /* CEGUI_LUA_VER >= 51 */
     87    #else /* LUA_VERSION_NUM >= 501 */
    9288        luaopen_base(d_state);
    9389        luaopen_io(d_state);
    9490        luaopen_string(d_state);
     
    9793        #if defined(DEBUG) || defined (_DEBUG)
    9894            luaopen_debug(d_state);
    9995        #endif
    100     #endif /* CEGUI_LUA_VER >= 51 */
     96    #endif /* LUA_VERSION_NUM >= 501 */
    10197
    10298    setModuleIdentifierString();
    10399}
  • CEGUILua.h

     
    3434/*************************************************************************
    3535        Import / Export control macros
    3636*************************************************************************/
    37 #if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined(CEGUI_STATIC)
     37#if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined(CEGUILUA_STATIC)
    3838#   ifdef CEGUILUA_EXPORTS
    3939#       define CEGUILUA_API __declspec(dllexport)
    4040#   else
    41 #       define CEGUILUA_API __declspec(dllimport)
     41#       if defined( __MINGW32__ )
     42#           define CEGUILUA_API
     43#       else
     44#           define CEGUILUA_API __declspec(dllimport)
     45#       endif
    4246#   endif
    4347#else
    4448#   define CEGUILUA_API
  • CEGUILuaFunctor.cpp

     
    3939#include "lauxlib.h"
    4040}
    4141
    42 #include "tolua++.h"
     42#include "tolua/tolua++.h"
    4343
    4444// Start of CEGUI namespace section
    4545namespace CEGUI
Note: See TracBrowser for help on using the repository browser.