From 3f2166ea9118a8606ba43a9fa11afb41d1fbaa9b Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 4 Jan 2022 18:36:45 +0100 Subject: [PATCH] Introduction of FL/fl_config.h - continued --- FL/platform.H | 5 ++--- FL/platform_types.h | 4 +++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/FL/platform.H b/FL/platform.H index b1a61c09b..f70550ba8 100644 --- a/FL/platform.H +++ b/FL/platform.H @@ -28,9 +28,8 @@ #if !defined(FL_PLATFORM_H) && !defined(FL_DOXYGEN) # define FL_PLATFORM_H -# include # include -# include +# include // will bring in FL/fl_config.h # include // for uchar class Fl_Window; @@ -40,7 +39,7 @@ class Fl_Window; # include "mac.H" # elif defined(__ANDROID__) # include "android.H" -# else // X11 +# elif defined(FLTK_USE_X11) # include # include # if defined(_ABIN32) || defined(_ABI64) // fix for broken SGI Irix X .h files diff --git a/FL/platform_types.h b/FL/platform_types.h index 9b3fa8431..cafeae0c4 100644 --- a/FL/platform_types.h +++ b/FL/platform_types.h @@ -46,6 +46,8 @@ typedef opaque GLContext; /**< an OpenGL graphics context, into which all OpenGL #ifndef FL_PLATFORM_TYPES_H #define FL_PLATFORM_TYPES_H +#include + /* Platform-dependent types are defined here. These types must be defined by any platform: Fl_Offscreen, Fl_Bitmask, Fl_Region, FL_SOCKET, GLContext, struct dirent, struct stat, @@ -136,7 +138,7 @@ typedef struct __GLXcontextRec *GLContext; #include #include -#else /* X11 */ +#elif defined(FLTK_USE_X11) typedef unsigned long Fl_Offscreen; typedef unsigned long Fl_Bitmask;