glu32: Use --prefer-native instead of DLL_WINE_PREATTACH.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-02-23 10:06:01 +01:00
parent 65124b6e83
commit 3712ae0c70
2 changed files with 1 additions and 17 deletions

View File

@ -2,7 +2,7 @@ MODULE = glu32.dll
IMPORTLIB = glu32
IMPORTS = opengl32
EXTRADLLFLAGS = -mno-cygwin
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \
geom.c \

View File

@ -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;
}