[DELAYIMP] Fix/Merge definitions of __pfnDliNotifyHook2 and __pfnDliFailureHook2
authorSerge Gautherie <reactos-git_serge_171003@gautherie.fr>
Sun, 11 Feb 2018 22:37:34 +0000 (23:37 +0100)
committerMark Jansen <mark.jansen@reactos.org>
Wed, 13 Jun 2018 21:28:15 +0000 (23:28 +0200)
sdk/lib/delayimp/delayimp.c

index e3f97b0..0f86b67 100644 (file)
 
 /**** Linker magic: provide a default (NULL) pointer, but allow the user to override it ****/
 
-#if defined(__GNUC__)
+/* The actual items we use */
 PfnDliHook __pfnDliNotifyHook2;
 PfnDliHook __pfnDliFailureHook2;
-#else
-/* The actual items we use */
-extern PfnDliHook __pfnDliNotifyHook2;
-extern PfnDliHook __pfnDliFailureHook2;
 
+#if !defined(__GNUC__)
 /* The fallback symbols */
 PfnDliHook __pfnDliNotifyHook2Default = NULL;
 PfnDliHook __pfnDliFailureHook2Default = NULL;