Mercurial > audlegacy-plugins
changeset 2547:d3432c34e817
fix int types redefinition caused by bad order of #includes, pointed by pelya on IRC
author | Cristi Magherusan <majeru@atheme.org> |
---|---|
date | Wed, 07 May 2008 19:10:06 +0300 |
parents | a4c855226874 |
children | d26db7f08124 |
files | src/modplug/gui/main.cxx |
diffstat | 1 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 <config.h> +#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 <gtk/gtk.h> #include <libintl.h> extern "C" { @@ -26,10 +35,6 @@ #include <sys/mman.h> #include <fstream> -#include "../stddefs.h" -#include "../stdafx.h" -#include "../sndfile.h" -#include "../archive/open.h" #define MAX_MESSAGE_LENGTH 4000