diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2016-01-31 00:39:57 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2016-01-31 00:39:57 +0000 |
| commit | 5c32d3b24ceec2005c38ec7e3335fead43b26d1d (patch) | |
| tree | 1453890859ba59b6ccc35715730045a91965d5cf /src/fl_font.cxx | |
| parent | 6cc67c18f24d76ce890e16fb9e55217b8665680b (diff) | |
Update build system to compile all drivers as indiviual objects.
Removed obsolete files that served only one purpose: to #include
different driver files. Updated CMake and Makefiles to reflect the
changes. Build tested with:
- MinGW + configure/make
- MinGW + CMake/make
- Visual Studio 2010 generated by CMake
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11092 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_font.cxx')
| -rw-r--r-- | src/fl_font.cxx | 42 |
1 files changed, 3 insertions, 39 deletions
diff --git a/src/fl_font.cxx b/src/fl_font.cxx index 51761de71..78c77baef 100644 --- a/src/fl_font.cxx +++ b/src/fl_font.cxx @@ -3,7 +3,7 @@ // // Font selection code for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2010 by Bill Spitzak and others. +// Copyright 1998-2016 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 @@ -16,24 +16,6 @@ // http://www.fltk.org/str.php // -#ifdef WIN32 -# ifndef WIN32_LEAN_AND_MEAN -# define WIN32_LEAN_AND_MEAN -# endif -/* We require Windows 2000 features such as GetGlyphIndices */ -# if !defined(WINVER) || (WINVER < 0x0500) -# ifdef WINVER -# undef WINVER -# endif -# define WINVER 0x0500 -# endif -# if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0500) -# ifdef _WIN32_WINNT -# undef _WIN32_WINNT -# endif -# define _WIN32_WINNT 0x0500 -# endif -#endif // Select fonts from the FLTK font table. #include "flstring.h" @@ -46,30 +28,12 @@ #include <stdlib.h> // ----------------------------------------------------------------------------- -// Remove #ifndef FL_LIBRARY_CMAKE and the entire block of #include -// statements when the new build system is ready: - -#ifndef FL_LIBRARY_CMAKE - -#ifdef WIN32 -# include "drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx" -#elif defined(__APPLE__) -// Apple Quartz driver in "drivers/Quartz/Fl_Quartz_Graphics_Driver_font.cxx" -#elif USE_XFT -# include "drivers/Xlib/Fl_Xlib_Graphics_Driver_font_xft.cxx" -#elif defined(FL_PORTING) -# pragma message "FL_PORTING: implement font handling specifics in its own file" -#else -// # include "drivers/Xlib/Fl_Xlib_Graphics_Driver_font_x.cxx" -#endif // WIN32 - -#endif // FL_LIBRARY_CMAKE - +// all driver code is now in drivers/XXX/Fl_XXX_Graphics_Driver_xyz.cxx // ----------------------------------------------------------------------------- #if defined(WIN32) || defined(__APPLE__) #elif defined(FL_PORTING) -# pragma message "FL_PORTING: do you need the XFontStruct" +# pragma message "FL_PORTING: do you need the XFontStruct ?" #else XFontStruct *fl_X_core_font() { |
