From 0e7d45c89a578e73f44fe77d1098f75f6045c853 Mon Sep 17 00:00:00 2001 From: Michel Zou Date: Sat, 24 Oct 2020 22:27:06 +0200 Subject: [PATCH] util: use dllexport for mingw too Acked-by: Jose Fonseca Reviewed-by: Dave Airlie Part-of: --- src/util/macros.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util/macros.h b/src/util/macros.h index f9aa478c994..bd82fa2df7e 100644 --- a/src/util/macros.h +++ b/src/util/macros.h @@ -219,12 +219,12 @@ do { \ * inline a static function that we later use in an alias. - ajax */ #ifndef PUBLIC -# if defined(__GNUC__) -# define PUBLIC __attribute__((visibility("default"))) -# define USED __attribute__((used)) -# elif defined(_MSC_VER) +# if defined(_WIN32) # define PUBLIC __declspec(dllexport) # define USED +# elif defined(__GNUC__) +# define PUBLIC __attribute__((visibility("default"))) +# define USED __attribute__((used)) # else # define PUBLIC # define USED