- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
89 lines
2.0 KiB
C
89 lines
2.0 KiB
C
/*
|
|
* Configuration file for the Fast Light Tool Kit (FLTK).
|
|
*
|
|
* Copyright 1998-2020 by Bill Spitzak and others.
|
|
*
|
|
* This library is free software. Distribution and use rights are outlined in
|
|
* the file "COPYING" which should have been included with this file. If this
|
|
* file is missing or damaged, see the license at:
|
|
*
|
|
* https://www.fltk.org/COPYING.php
|
|
*
|
|
* Please see the following page on how to report bugs and issues:
|
|
*
|
|
* https://www.fltk.org/bugs.php
|
|
*/
|
|
|
|
#ifndef FL_CONFIG_LIB_H
|
|
#define FL_CONFIG_LIB_H
|
|
|
|
#include <config.h>
|
|
|
|
|
|
/* find the right graphics configuration */
|
|
#if !defined(FL_CFG_GFX_XLIB) && !defined(FL_CFG_GFX_QUARTZ) && !defined(FL_CFG_GFX_GDI)
|
|
|
|
#ifdef __APPLE__ /* default configurations */
|
|
# define FL_CFG_GFX_QUARTZ
|
|
# ifdef HAVE_GL
|
|
# define FL_CFG_GFX_OPENGL
|
|
# endif
|
|
#elif defined(_WIN32)
|
|
# define FL_CFG_GFX_GDI
|
|
# ifdef HAVE_GL
|
|
# define FL_CFG_GFX_OPENGL
|
|
# endif
|
|
#elif defined(USE_X11) /* X11 */
|
|
# define FL_CFG_GFX_XLIB
|
|
# ifdef HAVE_GL
|
|
# define FL_CFG_GFX_OPENGL
|
|
# endif
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
/* find the right printer driver configuration */
|
|
#if !defined(FL_CFG_PRN_PS) && !defined(FL_CFG_PRN_QUARTZ) && !defined(FL_CFG_PRN_WIN32)
|
|
|
|
#ifdef __APPLE__ /* default configurations */
|
|
# define FL_CFG_PRN_QUARTZ
|
|
#elif defined(_WIN32)
|
|
# define FL_CFG_PRN_WIN32
|
|
#elif defined(USE_X11) /* X11 */
|
|
# define FL_CFG_PRN_PS
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
/* find the right window manager configuration */
|
|
#if !defined(FL_CFG_WIN_X11) && !defined(FL_CFG_WIN_COCOA) && !defined(FL_CFG_WIN_WIN32)
|
|
|
|
#ifdef __APPLE__ /* default configurations */
|
|
# define FL_CFG_WIN_COCOA
|
|
#elif defined(_WIN32)
|
|
# define FL_CFG_WIN_WIN32
|
|
#elif defined(USE_X11) /* X11 */
|
|
# define FL_CFG_WIN_X11
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
/* find the right system configuration */
|
|
#if !defined(FL_CFG_SYS_POSIX) && !defined(FL_CFG_SYS_WIN32)
|
|
|
|
#ifdef __APPLE__ /* default configurations */
|
|
# define FL_CFG_SYS_POSIX
|
|
#elif defined(_WIN32)
|
|
# define FL_CFG_SYS_WIN32
|
|
#elif defined(USE_X11) /* X11 */
|
|
# define FL_CFG_SYS_POSIX
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
#endif
|