# HG changeset patch # User Cristi Magherusan # Date 1210176606 -10800 # Node ID d3432c34e81758d5437875704f75115704c4ff48 # Parent a4c8552268741e369fbfda910d7b6a6eab721233 fix int types redefinition caused by bad order of #includes, pointed by pelya on IRC diff -r a4c855226874 -r d3432c34e817 src/modplug/gui/main.cxx --- a/src/modplug/gui/main.cxx Wed Apr 30 13:29:56 2008 +0300 +++ b/src/modplug/gui/main.cxx Wed May 07 19:10:06 2008 +0300 @@ -5,6 +5,15 @@ #include +#include "../stddefs.h" +#include "../stdafx.h" +#include "../sndfile.h" +#include "../archive/open.h" + +// Order of #include is important - UINT is redefined to unsigned long instead of unsigned int +// somewhere in the following headers, which leads to unresolved symbol - +// linking is okay, error pops up when starting Audacious. + #include #include extern "C" { @@ -26,10 +35,6 @@ #include #include -#include "../stddefs.h" -#include "../stdafx.h" -#include "../sndfile.h" -#include "../archive/open.h" #define MAX_MESSAGE_LENGTH 4000