diff --git a/FL/fl_utf8.h b/FL/fl_utf8.h index b8247f006..fe23fe93f 100644 --- a/FL/fl_utf8.h +++ b/FL/fl_utf8.h @@ -35,6 +35,13 @@ #include #include +/* + *FIXME* -- PORTME: should not be in the header -- + Many, if not all of the included headers below should not be included + here, because this pollutes user space definitions. + Note: FL/fl_utf8.h is included in many other header files! +*/ + #ifdef WIN32 # include # include @@ -67,8 +74,10 @@ #else /* X11 */ # include # include -# include -# include +# if defined(FL_LIBRARY) /* don't expose X11 headers in user space */ +# include +# include +# endif /* defined(FL_LIBRARY) -- don't expose X11 headers in user space */ # include # define xchar unsigned short #endif