summaryrefslogtreecommitdiff
path: root/test/tiled_image.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-04-19 14:07:21 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-04-19 14:07:37 +0200
commitd01aab2ecec3c437300c292536ffa0e91e494d0f (patch)
treee98050a51bb89b7fa897cb05d0d59859a88dea05 /test/tiled_image.cxx
parent72901a626c47502b3ab660b8a67ec82698ebe56d (diff)
Replace list of excluded platforms by name of chosen platform.
Since FL/platform.H defines USE_X11 for the X11 platform, it's better to target the X11 platform by #include <FL/platform.H> #if USE_X11 rather than by #if !defined(_WIN32) && !defined(__APPLE__) && !defined(__ANDROID__) that would have to grow with future platforms.
Diffstat (limited to 'test/tiled_image.cxx')
-rw-r--r--test/tiled_image.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/tiled_image.cxx b/test/tiled_image.cxx
index bb0a8ef55..1ab275493 100644
--- a/test/tiled_image.cxx
+++ b/test/tiled_image.cxx
@@ -33,9 +33,7 @@ void button_cb(Fl_Widget *,void *) {
}
#include <FL/platform.H>
-#if !defined(_WIN32) && !defined(__APPLE__)
#include "list_visuals.cxx"
-#endif
int visid = -1;
int arg(int argc, char **argv, int &i) {
@@ -49,7 +47,7 @@ int arg(int argc, char **argv, int &i) {
}
int main(int argc, char **argv) {
-#if !defined(_WIN32) && !defined(__APPLE__)
+#if USE_X11
int i = 1;
Fl::args(argc,argv,i,arg);