diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2018-02-09 14:39:42 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2018-02-09 14:39:42 +0000 |
| commit | 52ae3582a2c7bb437df33c0a30bfd5a01d6c5282 (patch) | |
| tree | 4f532a97ab0a6a1c2f96454290bc8803ee022f1f /examples/clipboard.cxx | |
| parent | 30dad6a4aa2b94fe91783160c86abc75f9dc9e23 (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 'examples/clipboard.cxx')
| -rw-r--r-- | examples/clipboard.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/clipboard.cxx b/examples/clipboard.cxx index 156c520d2..d95f883bd 100644 --- a/examples/clipboard.cxx +++ b/examples/clipboard.cxx @@ -26,9 +26,9 @@ #include <FL/Fl_Button.H> #include <FL/Fl.H> #include <FL/fl_draw.H> -#ifdef WIN32 +#ifdef _WIN32 #include <windows.h> -#endif // WIN32 +#endif // _WIN32 /* Displays and follows the content of the clipboard with either image or text data */ @@ -79,7 +79,7 @@ public: if (!im) return 1; char title[300]; sprintf(title, "%dx%d",im->w(), im->h()); // display the image original size -#ifdef WIN32 +#ifdef _WIN32 OpenClipboard(NULL); // display extra technical info about clipboard content char *p=title + strlen(title); int format = EnumClipboardFormats(0); @@ -133,7 +133,7 @@ void clip_callback(int source, void *data) { // called after clipboard was chang int main(int argc, char **argv) { -#if !(defined(__APPLE__) || defined(WIN32)) +#if !(defined(__APPLE__) || defined(_WIN32)) fl_register_images(); // required to allow pasting of images #endif Fl_Window* win = new Fl_Window(500, 550, "clipboard viewer"); |
