Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/ceguilua/ceguilua-0.6.2/ceguilua/changes_orxonox.diff @ 2710

Last change on this file since 2710 was 2710, checked in by rgrieder, 15 years ago

Merged buildsystem3 containing buildsystem2 containing Adi's buildsystem branch back to the trunk.
Please update the media directory if you were not using buildsystem3 before.

  • Property svn:eol-style set to native
File size: 2.5 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 "CEGUIConfig.h"
    3632#include "CEGUIPropertyHelper.h"
     
    4541#include "lauxlib.h"
    4642}
    4743
    48 #include "tolua++.h"
     44#include "tolua/tolua++.h"
    4945
    5046// prototype for bindings initialisation function
    5147int tolua_CEGUI_open(lua_State* tolua_S);
     
    6157LuaScriptModule::LuaScriptModule() :
    6258    d_errFuncIndex(LUA_NOREF)
    6359{
    64     #if CEGUI_LUA_VER >= 51
     60    #if LUA_VERSION_NUM >= 501
    6561        static const luaL_Reg lualibs[] = {
    6662            {"", luaopen_base},
    6763            {LUA_LOADLIBNAME, luaopen_package},
     
    7571        #endif
    7672            {0, 0}
    7773        };
    78     #endif /* CEGUI_LUA_VER >= 51 */
     74    #endif /* LUA_VERSION_NUM >= 501 */
    7975
    8076    // create a lua state
    8177    d_ownsState = true;
    8278    d_state = lua_open();
    8379
    8480    // init all standard libraries
    85     #if CEGUI_LUA_VER >= 51
     81    #if LUA_VERSION_NUM >= 501
    8682            const luaL_Reg *lib = lualibs;
    8783            for (; lib->func; lib++)
    8884            {
     
    9086                lua_pushstring(d_state, lib->name);
    9187                lua_call(d_state, 1, 0);
    9288            }
    93     #else /* CEGUI_LUA_VER >= 51 */
     89    #else /* LUA_VERSION_NUM >= 501 */
    9490        luaopen_base(d_state);
    9591        luaopen_io(d_state);
    9692        luaopen_string(d_state);
     
    9995        #if defined(DEBUG) || defined (_DEBUG)
    10096            luaopen_debug(d_state);
    10197        #endif
    102     #endif /* CEGUI_LUA_VER >= 51 */
     98    #endif /* LUA_VERSION_NUM >= 501 */
    10399
    104100    setModuleIdentifierString();
    105101}
  • CEGUILua.h

     
    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

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