On Thu, 2007-11-01 at 09:48 -0400, Hubert Figuiere wrote:
> Hi,
>
> I have to seriously disagree with this way of doing the platform code.
>
> #ifdef is not the right way.
>
I dislike it as much as you do, but I'm on a deadline; this code will be
replaced with properly designed code.
Marc
> > Fix AbiCollab build on Windows. That was easier than I expected!
> >
> > Modified: abiword-plugins/trunk/tools/abicollab/core/session/xp/AbiCollab_Command.cpp
> > ===================================================================
> > --- abiword-plugins/trunk/tools/abicollab/core/session/xp/AbiCollab_Command.cpp 2007-11-01 00:06:25 UTC (rev 22271)
> > +++ abiword-plugins/trunk/tools/abicollab/core/session/xp/AbiCollab_Command.cpp 2007-11-01 03:42:08 UTC (rev 22272)
> > @@ -29,9 +29,15 @@
> > #include "xap_App.h"
> > #include "xap_Frame.h"
> >
> > +#ifndef WIN32
> > #include "ap_UnixApp.h"
> > //#include "gr_UnixNullGraphics.h"
> > #include "ap_UnixFrame.h"
> > +
> > +#else
> > +// any windows stuff needed here?
> > +
> > +#endif
> > #include "gr_DrawArgs.h"
> >
> > #ifdef ABICOLLAB_HANDLER_FAKE
> > @@ -46,7 +52,12 @@
> > : m_argv(argv)
> > {
> > XAP_App* pApp = XAP_App::getApp ();
> > +
> > + #ifndef WIN32
> > pApp->getGraphicsFactory()->registerAsDefault(GRID_UNIX_NULL, true);
> > + #else
> > + pApp->getGraphicsFactory()->registerAsDefault(GRID_WIN32_UNISCRIBE, true);
> > + #endif
> > }
> >
> >
> >
> > -----------------------------------------------
> > To unsubscribe from this list, send a message to
> > abisource-cvs-commit-request@abisource.com with the word
> > unsubscribe in the message body.
>
Received on Thu Nov 1 22:18:48 2007
This archive was generated by hypermail 2.1.8 : Thu Nov 01 2007 - 22:18:48 CET