From 5c13ad558b17d7df770a0d95ca7e6091f73f45e7 Mon Sep 17 00:00:00 2001 From: Marcel Taeumel Date: Thu, 27 Oct 2022 10:52:42 +0200 Subject: [PATCH] Change IMPORT() and EXPORT() to extern; it is not possible to compile neither DropPlugin nor FileDialogPlugin as shared (i.e. external plugin) anyway... --- platforms/win32/plugins/DropPlugin/sqWin32Drop.c | 2 +- platforms/win32/plugins/FileDialogPlugin/sqWin32FileDialog.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platforms/win32/plugins/DropPlugin/sqWin32Drop.c b/platforms/win32/plugins/DropPlugin/sqWin32Drop.c index f7d769346c..faa158319b 100644 --- a/platforms/win32/plugins/DropPlugin/sqWin32Drop.c +++ b/platforms/win32/plugins/DropPlugin/sqWin32Drop.c @@ -31,7 +31,7 @@ extern HWND stWindow; // then the GlobalFree below will corrupt the Windows heap. I know; no one // should do this; but users can be capricious. We would rather risk a storage // leak than have users deal with unexpected and hard to debug crashes. -EXPORT(int) okToFreeSTGMEDIUMHGLOBAL = 1; +extern int okToFreeSTGMEDIUMHGLOBAL = 1; #if 0 #define DPRINTF(x) printf x diff --git a/platforms/win32/plugins/FileDialogPlugin/sqWin32FileDialog.c b/platforms/win32/plugins/FileDialogPlugin/sqWin32FileDialog.c index ada33343fb..20ad1b1fd1 100644 --- a/platforms/win32/plugins/FileDialogPlugin/sqWin32FileDialog.c +++ b/platforms/win32/plugins/FileDialogPlugin/sqWin32FileDialog.c @@ -57,7 +57,7 @@ static sqWin32FileDialog allDialogs[DLG_MAX]; // then the GlobalFree below will corrupt the Windows heap. I know; no one // should do this; but users can be capricious. We would rather risk a storage // leak than have users deal with unexpected and hard to debug crashes. -IMPORT(int) okToFreeSTGMEDIUMHGLOBAL; +extern int okToFreeSTGMEDIUMHGLOBAL; /***************************************************************************/ /***************************************************************************/