diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2018-06-23 17:04:18 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2018-06-23 17:04:18 +0000 |
| commit | b1598dc70362f331da7a65f1e5ddece7c88299f3 (patch) | |
| tree | b86ceda8b546d19b0bb1d4cfc7b8babdd53c3f3c /test | |
| parent | a9fd08ff5ab8bbf3838200ceace671a72627d212 (diff) | |
Removed macro FL_PORTING, as it has been more confusing than helpful.
The original intention of FL_PORTING was to mark all places in the
source code where changes are required to port FLTK to a new platform.
Thanks to the driver system, this approach has become somewhat
misleading, so I removed all references.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12969 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test')
| -rw-r--r-- | test/blocks.cxx | 6 | ||||
| -rw-r--r-- | test/color_chooser.cxx | 6 | ||||
| -rw-r--r-- | test/list_visuals.cxx | 4 | ||||
| -rw-r--r-- | test/sudoku.cxx | 6 |
4 files changed, 3 insertions, 19 deletions
diff --git a/test/blocks.cxx b/test/blocks.cxx index 029133e5b..c7d3979ed 100644 --- a/test/blocks.cxx +++ b/test/blocks.cxx @@ -34,12 +34,6 @@ // Audio headers... #include <config.h> -#if defined(_WIN32) || defined(__APPLE__) -#elif defined(FL_PORTING) -# pragma message "FL_PORTING: FLTK does not provide cross platform sound support" -#else -#endif - #ifndef _WIN32 # include <unistd.h> # include <sys/time.h> // gettimeofday() diff --git a/test/color_chooser.cxx b/test/color_chooser.cxx index 5c80251a7..0c998034d 100644 --- a/test/color_chooser.cxx +++ b/test/color_chooser.cxx @@ -28,7 +28,7 @@ #include <stdlib.h> #include <stdio.h> -#if !defined(_WIN32) && !defined(__APPLE__) && !defined(FL_PORTING) && !defined(__ANDROID__) +#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__ANDROID__) #include "list_visuals.cxx" #endif @@ -114,7 +114,7 @@ int main(int argc, char ** argv) { " - : default visual\n" " r : call Fl::visual(FL_RGB)\n" " c : call Fl::own_colormap()\n",argv[0]); -#if !defined(_WIN32) && !defined(__APPLE__) && !defined(FL_PORTING) && !defined(__ANDROID__) +#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__ANDROID__) printf(" # : use this visual with an empty colormap:\n"); list_visuals(); #endif @@ -127,7 +127,7 @@ int main(int argc, char ** argv) { } else if (argv[i][0] == 'c') { Fl::own_colormap(); } else if (argv[i][0] != '-') { -#if !defined(_WIN32) && !defined(__APPLE__) && !defined(FL_PORTING) && !defined(__ANDROID__) +#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__ANDROID__) int visid = atoi(argv[i]); fl_open_display(); XVisualInfo templt; int num; diff --git a/test/list_visuals.cxx b/test/list_visuals.cxx index a4516afcf..ebda7ef8e 100644 --- a/test/list_visuals.cxx +++ b/test/list_visuals.cxx @@ -33,10 +33,6 @@ int main(int, char**) { return 1; } -#elif defined(FL_PORTING) - -# pragma message "FL_PORTING: list_visuals" - #else #include <config.h> diff --git a/test/sudoku.cxx b/test/sudoku.cxx index 14255daab..174061515 100644 --- a/test/sudoku.cxx +++ b/test/sudoku.cxx @@ -46,12 +46,6 @@ # include <unistd.h> #endif // !_WIN32 -#if defined(_WIN32) || defined(__APPLE__) -#elif defined(FL_PORTING) -# pragma message "FL_PORTING: FLTK does not provide cross platform sound support" -#else -#endif - #ifdef HAVE_ALSA_ASOUNDLIB_H # define ALSA_PCM_NEW_HW_PARAMS_API # include <alsa/asoundlib.h> |
