gl.h: Remove dllimport
__declspec(dllimport) isn't needed for linking to functions, extern is sufficient. The preprocessor define used to determine when to set it (_DLL) was incorrect, since that preprocessor define is set anytime you're linking against dynamic CRT as opposed to static CRT. Reviewed-by: Bill Kristiansen <billkris@Microsoft.com> Reviewed-by: Marek Olák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12776>
This commit is contained in:
parent
5ab27ad01e
commit
44b9e11ddb
|
@ -38,9 +38,7 @@
|
|||
#if defined(__WIN32__) && !defined(__CYGWIN__)
|
||||
# if (defined(_MSC_VER) || defined(__MINGW32__)) && defined(BUILD_GL32) /* tag specify we're building mesa as a DLL */
|
||||
# define GLAPI __declspec(dllexport)
|
||||
# elif (defined(_MSC_VER) || defined(__MINGW32__)) && defined(_DLL) /* tag specifying we're building for DLL runtime support */
|
||||
# define GLAPI __declspec(dllimport)
|
||||
# else /* for use with static link lib build of Win32 edition only */
|
||||
# else
|
||||
# define GLAPI extern
|
||||
# endif
|
||||
# if defined(__MINGW32__) && defined(GL_NO_STDCALL) || defined(UNDER_CE) /* The generated DLLs by MingW with STDCALL are not compatible with the ones done by Microsoft's compilers */
|
||||
|
|
Loading…
Reference in New Issue