Module: wine Branch: master Commit: dc4bad6d85409f5116fec5d44b2788b685b1befd URL: https://gitlab.winehq.org/wine/wine/-/commit/dc4bad6d85409f5116fec5d44b2788b...
Author: Jacek Caban jacek@codeweavers.com Date: Wed Nov 15 16:26:39 2023 +0100
include: Don't use dllexport attribute for Wine PE modules.
---
include/winnt.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/winnt.h b/include/winnt.h index d1c82084f9f..0af765652b7 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -180,7 +180,10 @@ extern "C" {
/* a couple of useful Wine extensions */
-#ifdef _MSC_VER +#if defined(__WINESRC__) && !defined(WINE_UNIX_LIB) +/* Wine uses .spec file for PE exports */ +# define DECLSPEC_EXPORT +#elif defined(_MSC_VER) # define DECLSPEC_EXPORT __declspec(dllexport) #elif defined(__MINGW32__) # define DECLSPEC_EXPORT __attribute__((dllexport))