mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-18 10:16:26 +00:00
include: Add DECLSPEC_NOINLINE macro.
This commit is contained in:
parent
50dfe977b7
commit
d08723fbf7
|
@ -155,6 +155,16 @@ extern "C" {
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef DECLSPEC_NOINLINE
|
||||
# if defined(_MSC_VER) && (_MSC_VER >= 1300)
|
||||
# define DECLSPEC_NOINLINE __declspec(noinline)
|
||||
# elif defined(__GNUC__)
|
||||
# define DECLSPEC_NOINLINE __attribute__((noinline))
|
||||
# else
|
||||
# define DECLSPEC_NOINLINE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef DECLSPEC_DEPRECATED
|
||||
# if defined(_MSC_VER) && (_MSC_VER >= 1300) && !defined(MIDL_PASS)
|
||||
# define DECLSPEC_DEPRECATED __declspec(deprecated)
|
||||
|
|
Loading…
Reference in a new issue