diff --git a/src/generic/imaglist.cpp b/src/generic/imaglist.cpp index 8c7f6898d3..23fb6cee97 100644 --- a/src/generic/imaglist.cpp +++ b/src/generic/imaglist.cpp @@ -7,8 +7,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifndef __PALMOS__ - #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "imaglist.h" #endif @@ -20,7 +18,12 @@ #pragma hdrstop #endif +#include "wx/defs.h" + +#ifndef __PALMOS__ + #include "wx/generic/imaglist.h" + #include "wx/icon.h" #include "wx/image.h" #include "wx/dc.h"