diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-04-09 20:36:28 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-04-09 20:36:28 +0000 |
| commit | 77a3b80dff7dbd282c240bfb329f0a93c9ada4aa (patch) | |
| tree | e5ba98033ee216cad0b70ce83a9a6bb2f454b74e /src/fl_dnd_win32.cxx | |
| parent | 921f66e3e641a290f375fd1b46bc2a5bbe601dbd (diff) | |
OK, back out -fvtable-thunks and add conditional compile for WIN32
DnD code for Cygwin...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2062 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_dnd_win32.cxx')
| -rw-r--r-- | src/fl_dnd_win32.cxx | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/fl_dnd_win32.cxx b/src/fl_dnd_win32.cxx index d46e1fe6a..e510e7dfa 100644 --- a/src/fl_dnd_win32.cxx +++ b/src/fl_dnd_win32.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_dnd_win32.cxx,v 1.5.2.4 2002/03/25 19:17:05 easysw Exp $" +// "$Id: fl_dnd_win32.cxx,v 1.5.2.5 2002/04/09 20:36:28 easysw Exp $" // // Drag & Drop code for the Fast Light Tool Kit (FLTK). // @@ -53,6 +53,9 @@ extern char fl_i_own_selection[2]; Fl_Window *fl_dnd_target_window = 0; +// All of the following code requires GCC 3.x or a non-GNU compiler... +#if !defined(__GNUC__) || __GNUC__ >= 3 + /** * subclass the IDropTarget to receive data from DnD operations */ @@ -333,11 +336,18 @@ int Fl::dnd() w->handle( FL_RELEASE ); Fl::pushed( 0 ); } - if ( ret==DRAGDROP_S_DROP ) return true; // or DD_S_CANCEL - return false; + if ( ret==DRAGDROP_S_DROP ) return 1; // or DD_S_CANCEL + return 0; +} +#else +int Fl::dnd() +{ + // Always indicate DnD failed when using GCC < 3... + return 1; } +#endif // !__GNUC__ || __GNUC__ >= 3 // -// End of "$Id: fl_dnd_win32.cxx,v 1.5.2.4 2002/03/25 19:17:05 easysw Exp $". +// End of "$Id: fl_dnd_win32.cxx,v 1.5.2.5 2002/04/09 20:36:28 easysw Exp $". // |
