From 799daab99e30b8835037bbf32069339f8e684b69 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath <nathbappai@gmail.com>
Date: Mon, 14 Dec 2020 21:57:02 +0530
Subject: WinFile: Fix multiple definition of variables error in MinGW. (#262)

Make the global function pointers as "extern" variables.

diff --git a/src/winfile.h b/src/winfile.h
index 782f80b..42df738 100644
--- a/src/winfile.h
+++ b/src/winfile.h
@@ -570,10 +570,10 @@ LRESULT CALLBACK DirWndProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam);
 
 LRESULT CALLBACK SearchWndProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam);
 LRESULT CALLBACK DirListBoxWndProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam);
-VOID (*lpfnFormat)(PWSTR,FMIFS_MEDIA_TYPE,PWSTR,PWSTR,BOOLEAN,FMIFS_CALLBACK);
-VOID (*lpfnDiskCopy)(PWSTR,PWSTR,BOOLEAN,FMIFS_CALLBACK);
-BOOLEAN (*lpfnSetLabel)(PWSTR,PWSTR);
-BOOLEAN (*lpfnQuerySupportedMedia)(PWSTR,PFMIFS_MEDIA_TYPE,DWORD,PDWORD);
+Extern VOID (*lpfnFormat)(PWSTR,FMIFS_MEDIA_TYPE,PWSTR,PWSTR,BOOLEAN,FMIFS_CALLBACK);
+Extern VOID (*lpfnDiskCopy)(PWSTR,PWSTR,BOOLEAN,FMIFS_CALLBACK);
+Extern BOOLEAN (*lpfnSetLabel)(PWSTR,PWSTR);
+Extern BOOLEAN (*lpfnQuerySupportedMedia)(PWSTR,PFMIFS_MEDIA_TYPE,DWORD,PDWORD);
 BOOL Callback_Function(FMIFS_PACKET_TYPE PacketType, DWORD PacketLength, PVOID PacketData);
 
 INT_PTR CALLBACK CancelDlgProc  (HWND, UINT, WPARAM, LPARAM);
