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
  • 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
  • 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);
     
    6056*************************************************************************/
    6157LuaScriptModule::LuaScriptModule()
    6258{
    63     #if CEGUI_LUA_VER >= 51
     59    #if LUA_VERSION_NUM >= 501
    6460        static const luaL_Reg lualibs[] = {
    6561            {"", luaopen_base},
    6662            {LUA_LOADLIBNAME, luaopen_package},
     
    7470        #endif
    7571            {0, 0}
    7672        };
    77     #endif /* CEGUI_LUA_VER >= 51 */
     73    #endif /* LUA_VERSION_NUM >= 501 */
    7874
    7975    // create a lua state
    8076    d_ownsState = true;
    8177    d_state = lua_open();
    8278
    8379    // init all standard libraries
    84     #if CEGUI_LUA_VER >= 51
     80    #if LUA_VERSION_NUM >= 501
    8581            const luaL_Reg *lib = lualibs;
    8682            for (; lib->func; lib++)
    8783            {
     
    8985                lua_pushstring(d_state, lib->name);
    9086                lua_call(d_state, 1, 0);
    9187            }
    92     #else /* CEGUI_LUA_VER >= 51 */
     88    #else /* LUA_VERSION_NUM >= 501 */
    9389        luaopen_base(d_state);
    9490        luaopen_io(d_state);
    9591        luaopen_string(d_state);
     
    9894        #if defined(DEBUG) || defined (_DEBUG)
    9995            luaopen_debug(d_state);
    10096        #endif
    101     #endif /* CEGUI_LUA_VER >= 51 */
     97    #endif /* LUA_VERSION_NUM >= 501 */
    10298
    10399    setModuleIdentifierString();
    104100}
Note: See TracBrowser for help on using the repository browser.