From 3712ae0c7049f03c73d5a0fbc905d15a45cbbd4b Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 23 Feb 2021 10:06:01 +0100 Subject: [PATCH] glu32: Use --prefer-native instead of DLL_WINE_PREATTACH. Signed-off-by: Alexandre Julliard --- dlls/glu32/Makefile.in | 2 +- dlls/glu32/glu.c | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/dlls/glu32/Makefile.in b/dlls/glu32/Makefile.in index 587191229f8..45bf40dee38 100644 --- a/dlls/glu32/Makefile.in +++ b/dlls/glu32/Makefile.in @@ -2,7 +2,7 @@ MODULE = glu32.dll IMPORTLIB = glu32 IMPORTS = opengl32 -EXTRADLLFLAGS = -mno-cygwin +EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native C_SRCS = \ geom.c \ diff --git a/dlls/glu32/glu.c b/dlls/glu32/glu.c index 9305b90d308..8b045ea4438 100644 --- a/dlls/glu32/glu.c +++ b/dlls/glu32/glu.c @@ -276,19 +276,3 @@ GLboolean WINAPI wine_gluCheckExtension( const GLubyte *extName, const GLubyte * } return GLU_FALSE; } - -/*********************************************************************** - * DllMain - */ -BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, LPVOID reserved ) -{ - switch (reason) - { - case DLL_WINE_PREATTACH: - return FALSE; /* prefer native version */ - case DLL_PROCESS_ATTACH: - DisableThreadLibraryCalls( instance ); - break; - } - return TRUE; -}