Thanks for that.  I can see what's going wrong now...

The problem is that gtkmm's workaround only works if the Windows
definition of DELETE is done before the gtkmm header is included.

The gtkmm header is getting included like this:

synfig-studio/src/gtkmm/preview.h contains:
..#include <gtkmm/canvasview.h> which includes:
....synfig-studio/src/gtkmm/canvasview.h which contains:
......#include "app.h" which includes:
........synfig-studio/src/gtkmm/app.h which contains:
..........#include "iconcontroler.h" which includes:
............synfig-studio/src/gtkmm/iconcontroler.h which contains:
..............#include <gtkmm/stock.h> which includes:
................/usr/include/gtkmm-2.4/gtkmm/stock.h which contains:
................../* Shadow DELETE macro (from winnt.h). ... */

And the Windows definition is getting included like this:

synfig-studio/src/gtkmm/preview.cpp contains:
..#include "preview.h" which includes:
....synfig-studio/src/gtkmm/preview.h which contains:
......#include <ETL/clock> which includes:
........ETL/ETL/clock which contains:
..........#ifdef _WIN32
..........#include "_clock_win32hpcount.h" which includes:
............ETL/ETL/_clock_win32hpcount.h which contains:
..............#include <windows.h> which includes:
................c:/mingw/include/windows.h which contains:
..................#include <windef.h> which includes:
....................c:/mingw/include/windef.h which contains:
......................#include <winnt.h> which includes:
........................c:/mingw/include/winnt.h which contains:
..........................#define DELETE        0x00010000L

In summary, gtkmm/preview.h is including <gtkmm/canvasview.h> before
<ETL/clock>.

Switching these 2 should fix the problem.

I've commited a fix to preview.h in svn revision 362.

Can you try removing your #undef DELETE and see if it builds OK now
without it please?

Thanks.

Chris.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to