summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/color_chooser.cxx2
-rw-r--r--test/image.cxx2
-rw-r--r--test/list_visuals.cxx9
3 files changed, 12 insertions, 1 deletions
diff --git a/test/color_chooser.cxx b/test/color_chooser.cxx
index 9cdcbd36a..cc9c5cad5 100644
--- a/test/color_chooser.cxx
+++ b/test/color_chooser.cxx
@@ -16,7 +16,9 @@
#include <stdlib.h>
#include <stdio.h>
+#ifndef WIN32
#include "list_visuals.C"
+#endif
int width = 75;
int height = 75;
diff --git a/test/image.cxx b/test/image.cxx
index 3a2e79c44..41d4f5607 100644
--- a/test/image.cxx
+++ b/test/image.cxx
@@ -47,7 +47,9 @@ void button_cb(Fl_Widget *,void *) {
}
#include <FL/x.H>
+#ifndef WIN32
#include "list_visuals.C"
+#endif
int visid = -1;
int arg(int argc, char **argv, int &i) {
diff --git a/test/list_visuals.cxx b/test/list_visuals.cxx
index 57b1e7e74..534fe3297 100644
--- a/test/list_visuals.cxx
+++ b/test/list_visuals.cxx
@@ -7,7 +7,14 @@
// call to list the visuals. Fl.H must be included first to indicate this.
#ifdef WIN32
-void list_visuals() {;}
+#include <FL/Fl.H>
+#include <FL/fl_message.H>
+
+int main(int, char**) {
+ fl_alert("Currently, this program works only under X.");
+ return 1;
+}
+
#else
#include <config.h>