mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
winnt.h: Fix dllimport and visibility attributes on cygwin.
This commit is contained in:
parent
0c694d710e
commit
b9a0b1b479
@ -46,7 +46,7 @@ extern "C" {
|
||||
#ifndef MIDL_PASS
|
||||
# if defined(_MSC_VER)
|
||||
# define DECLSPEC_IMPORT __declspec(dllimport)
|
||||
# elif defined(__MINGW32__)
|
||||
# elif defined(__MINGW32__) || defined(__CYGWIN__)
|
||||
# define DECLSPEC_IMPORT __attribute__((dllimport))
|
||||
# else
|
||||
# define DECLSPEC_IMPORT DECLSPEC_HIDDEN
|
||||
@ -154,7 +154,9 @@ extern "C" {
|
||||
# define DECLSPEC_EXPORT
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
|
||||
#if defined(__MSC_VER) || defined(__MINGW32__) || defined(__CYGWIN__)
|
||||
# define DECLSPEC_HIDDEN
|
||||
#elif defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
|
||||
# define DECLSPEC_HIDDEN __attribute__((visibility ("hidden")))
|
||||
#else
|
||||
# define DECLSPEC_HIDDEN
|
||||
|
Loading…
Reference in New Issue
Block a user