diff options
-rw-r--r-- | amiga/drag.c | 46 | ||||
-rw-r--r-- | amiga/drag.h | 7 |
2 files changed, 48 insertions, 5 deletions
diff --git a/amiga/drag.c b/amiga/drag.c index bf2c94123..5999caade 100644 --- a/amiga/drag.c +++ b/amiga/drag.c @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ - +#ifdef __amigaos4__ #include <string.h> #include <proto/wb.h> @@ -26,9 +26,7 @@ #include <proto/icon.h> #include <proto/layers.h> -#ifdef __amigaos4__ #include <graphics/blitattr.h> -#endif #include <workbench/icon.h> #include "utils/errors.h" @@ -36,10 +34,8 @@ #include "utils/messages.h" #include "utils/utils.h" #include "utils/nsoption.h" -#include "desktop/browser.h" #include "content/hlcache.h" #include "desktop/mouse.h" -#include "desktop/gui_window.h" #include "amiga/gui.h" #include "amiga/bitmap.h" @@ -315,3 +311,43 @@ void *ami_window_at_pointer(int type) if(layer) return ami_find_gwin_by_id(layer->Window, type); else return NULL; } + +#else +#include "amiga/drag.h" + +void gui_drag_save_object(struct gui_window *g, struct hlcache_handle *c, + gui_save_type type) +{ +} + +void gui_drag_save_selection(struct gui_window *g, const char *selection) +{ +} + +void ami_drag_save(struct Window *win) +{ +} + +void ami_drag_icon_show(struct Window *win, const char *type) +{ +} + +void ami_drag_icon_close(struct Window *win) +{ +} + +void ami_drag_icon_move(void) +{ +} + +BOOL ami_drag_in_progress(void) +{ + return FALSE; +} + +void *ami_window_at_pointer(int type) +{ + return NULL; +} +#endif + diff --git a/amiga/drag.h b/amiga/drag.h index 35f2754ee..59a1a8467 100644 --- a/amiga/drag.h +++ b/amiga/drag.h @@ -18,9 +18,15 @@ #ifndef AMIGA_DRAG_H #define AMIGA_DRAG_H +#include <exec/types.h> +#include "desktop/browser.h" +#include "desktop/gui_window.h" #define AMI_DRAG_THRESHOLD 10 +struct hlcache_handle; +struct Window; + int drag_save; void *drag_save_data; struct gui_window *drag_save_gui; @@ -36,3 +42,4 @@ BOOL ami_drag_in_progress(void); void *ami_window_at_pointer(int type); #endif + |