X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bb84929ec5b27eae5433982703dd6d0df89bfc2d..615dca338b4c3214c30b84c45f3ebecfc3c9c98b:/src/unix/fontutil.cpp?ds=inline diff --git a/src/unix/fontutil.cpp b/src/unix/fontutil.cpp index f3a7778e52..3b3444b4ab 100644 --- a/src/unix/fontutil.cpp +++ b/src/unix/fontutil.cpp @@ -32,17 +32,25 @@ #endif // PCH #ifdef __X__ -#ifdef __VMS__ -#pragma message disable nosimpint -#endif -#include -#ifdef __VMS__ -#pragma message enable nosimpint -#endif + #ifdef __VMS__ + #pragma message disable nosimpint + #endif + + #include + + #ifdef __VMS__ + #pragma message enable nosimpint + #endif #include "wx/utils.h" // for wxGetDisplay() #elif defined(__WXGTK__) - #include "gdk/gdk.h" + // we have to declare struct tm to avoid problems with first forward + // declaring it in C code (glib.h included from gdk.h does it) and then + // defining it when time.h is included from the headers below - this is + // known not to work at least with Sun CC 6.01 + #include + + #include #endif #include "wx/fontutil.h"