util: use dllexport for mingw too
Acked-by: Jose Fonseca <jfonsec@vmware.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7341>
This commit is contained in:
@@ -219,12 +219,12 @@ do { \
|
|||||||
* inline a static function that we later use in an alias. - ajax
|
* inline a static function that we later use in an alias. - ajax
|
||||||
*/
|
*/
|
||||||
#ifndef PUBLIC
|
#ifndef PUBLIC
|
||||||
# if defined(__GNUC__)
|
# if defined(_WIN32)
|
||||||
# define PUBLIC __attribute__((visibility("default")))
|
|
||||||
# define USED __attribute__((used))
|
|
||||||
# elif defined(_MSC_VER)
|
|
||||||
# define PUBLIC __declspec(dllexport)
|
# define PUBLIC __declspec(dllexport)
|
||||||
# define USED
|
# define USED
|
||||||
|
# elif defined(__GNUC__)
|
||||||
|
# define PUBLIC __attribute__((visibility("default")))
|
||||||
|
# define USED __attribute__((used))
|
||||||
# else
|
# else
|
||||||
# define PUBLIC
|
# define PUBLIC
|
||||||
# define USED
|
# define USED
|
||||||
|
Reference in New Issue
Block a user