summaryrefslogtreecommitdiff
path: root/test/color_chooser.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2018-02-09 14:39:42 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2018-02-09 14:39:42 +0000
commit52ae3582a2c7bb437df33c0a30bfd5a01d6c5282 (patch)
tree4f532a97ab0a6a1c2f96454290bc8803ee022f1f /test/color_chooser.cxx
parent30dad6a4aa2b94fe91783160c86abc75f9dc9e23 (diff)
Replace "WIN32" with "_WIN32" or "Windows".
Replace compiler/preprocessor/platform macro "WIN32" with "_WIN32". Replace "WIN32" in text and documentation with "Windows". Replace "MSWindows" with "Windows". To do: README.Windows.txt (and maybe other documentation as well) needs updates. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/color_chooser.cxx')
-rw-r--r--test/color_chooser.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/color_chooser.cxx b/test/color_chooser.cxx
index 887962961..cc60a363b 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)
+#if !defined(_WIN32) && !defined(__APPLE__) && !defined(FL_PORTING)
#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)
+#if !defined(_WIN32) && !defined(__APPLE__) && !defined(FL_PORTING)
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)
+#if !defined(_WIN32) && !defined(__APPLE__) && !defined(FL_PORTING)
int visid = atoi(argv[i]);
fl_open_display();
XVisualInfo templt; int num;
@@ -138,7 +138,7 @@ int main(int argc, char ** argv) {
fl_visual->visual, AllocNone);
fl_xpixel(FL_BLACK); // make sure black is allocated
#else
- Fl::fatal("Visual id's not supported on MSWindows or MacOS.");
+ Fl::fatal("Visual id's not supported on Windows or MacOS.");
#endif
}
}