# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1074797509 0 # Node ID c607eb385e58a5e33bcba6875b72d7a787eee0bf # Parent f1998a89a4d51e7ca743b2d96386ff23b4f3a81d Added missing calling conventions. Thanks Bastian for pointing this out. diff -r f1998a89a4d5 -r c607eb385e58 dw.h --- a/dw.h Wed Jan 21 06:31:41 2004 +0000 +++ b/dw.h Thu Jan 22 18:51:49 2004 +0000 @@ -1009,8 +1009,8 @@ void API dw_filesystem_set_file(HWND handle, void *pointer, int row, char *filename, unsigned long icon); void API dw_filesystem_change_item(HWND handle, int column, int row, void *data); void API dw_filesystem_change_file(HWND handle, int row, char *filename, unsigned long icon); -void dw_taskbar_insert(HWND handle, unsigned long icon, char *bubbletext); -void dw_taskbar_delete(HWND handle, unsigned long icon); +void API dw_taskbar_insert(HWND handle, unsigned long icon, char *bubbletext); +void API dw_taskbar_delete(HWND handle, unsigned long icon); int API dw_screen_width(void); int API dw_screen_height(void); unsigned long API dw_color_depth(void); diff -r f1998a89a4d5 -r c607eb385e58 os2/dw.c --- a/os2/dw.c Wed Jan 21 06:31:41 2004 +0000 +++ b/os2/dw.c Thu Jan 22 18:51:49 2004 +0000 @@ -4569,7 +4569,7 @@ * DW pick the appropriate file extension. * (BMP on OS/2 or Windows, XPM on Unix) */ -HWND dw_bitmapbutton_new_from_file(char *text, unsigned long id, char *filename) +HWND API dw_bitmapbutton_new_from_file(char *text, unsigned long id, char *filename) { BubbleButton *bubble = calloc(sizeof(BubbleButton), 1); HWND tmp = WinCreateWindow(HWND_OBJECT, @@ -7001,7 +7001,7 @@ * icon: Icon handle to display in the taskbar. * bubbletext: Text to show when the mouse is above the icon. */ -void dw_taskbar_insert(HWND handle, unsigned long icon, char *bubbletext) +void API dw_taskbar_insert(HWND handle, unsigned long icon, char *bubbletext) { handle = handle; icon = icon; @@ -7015,7 +7015,7 @@ * handle: Window handle that was used with dw_taskbar_insert(). * icon: Icon handle that was used with dw_taskbar_insert(). */ -void dw_taskbar_delete(HWND handle, unsigned long icon) +void API dw_taskbar_delete(HWND handle, unsigned long icon) { handle = handle; icon = icon; @@ -8676,7 +8676,7 @@ * dataname: A string pointer identifying which signal to be hooked. * data: User data to be passed to the handler function. */ -void *dw_window_get_data(HWND window, char *dataname) +void * API dw_window_get_data(HWND window, char *dataname) { WindowData *blah = (WindowData *)WinQueryWindowPtr(window, QWP_USER); diff -r f1998a89a4d5 -r c607eb385e58 win/dw.c --- a/win/dw.c Wed Jan 21 06:31:41 2004 +0000 +++ b/win/dw.c Thu Jan 22 18:51:49 2004 +0000 @@ -4494,7 +4494,7 @@ * DW pick the appropriate file extension. * (BMP on OS/2 or Windows, XPM on Unix) */ -HWND dw_bitmapbutton_new_from_file(char *text, unsigned long id, char *filename) +HWND API dw_bitmapbutton_new_from_file(char *text, unsigned long id, char *filename) { HWND tmp; BubbleButton *bubble; @@ -7043,7 +7043,7 @@ * icon: Icon handle to display in the taskbar. * bubbletext: Text to show when the mouse is above the icon. */ -void dw_taskbar_insert(HWND handle, unsigned long icon, char *bubbletext) +void API dw_taskbar_insert(HWND handle, unsigned long icon, char *bubbletext) { NOTIFYICONDATA tnid; @@ -7067,7 +7067,7 @@ * handle: Window handle that was used with dw_taskbar_insert(). * icon: Icon handle that was used with dw_taskbar_insert(). */ -void dw_taskbar_delete(HWND handle, unsigned long icon) +void API dw_taskbar_delete(HWND handle, unsigned long icon) { NOTIFYICONDATA tnid;