> In fltk2 the generic system header file (unfortuatly called fltk/x.h) > does this so that USE_X11 is defined: > > # if defined(_WIN32) && !USE_X11 > # include "win32.h" > # elif defined(__APPLE__) && !USE_X11 > # include "osx.h" > # else > # define USE_X11 1 > # include "x11.h" > # endif > > This seems to be a pretty good solution. Once this header file is > included you can safely do "#if USE_X11".
Well... This maybe doesn't address the other use-case that was raised though, i.e. a Unix system that *is not* X11, i.e. some sort of embedded or framebuffer type device. Fltk doesn't really handle these sort of devices, but they are becoming more commonplace now, so maybe we should? "X-less" embedded devices seem like a natural place for fltk to support (fast, light, all that...) -- Ian SELEX Sensors and Airborne Systems Limited Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
