From: John L. <jr...@us...> - 2006-08-07 21:17:21
|
Update of /cvsroot/wxlua/wxLua/modules/wxbind/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv31484/wxLua/modules/wxbind/src Modified Files: wx_bind.cpp Log Message: compilation fixes for mingw creating dlls Index: wx_bind.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wx_bind.cpp,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -d -r1.50 -r1.51 *** wx_bind.cpp 21 Jun 2006 03:58:02 -0000 1.50 --- wx_bind.cpp 7 Aug 2006 21:17:12 -0000 1.51 *************** *** 25,28 **** --- 25,29 ---- #endif + // wxWidgets >= 2.7 doesn't have static versions of stock GDI objects anymore wxColour* wxLua_wxBLACK = NULL; wxColour* wxLua_wxWHITE = NULL; *************** *** 60,63 **** --- 61,71 ---- wxCursor* wxLua_wxCROSS_CURSOR = NULL; + #ifdef __MINGW32__ // dll creation fix + const wxPoint wxDefaultPositionHack = wxDefaultPosition; + const wxSize wxDefaultSizeHack = wxDefaultSize; + #define wxDefaultPosition wxDefaultPositionHack + #define wxDefaultSize wxDefaultSizeHack + #endif //__MINGW32__ + // ---------------------------------------------------------------------------- // wxLuaGetEventList_wx() is called to register events |