* Add DECLSPEC_SELECTANY.

svn path=/trunk/; revision=58749
This commit is contained in:
Amine Khaldi 2013-04-13 22:35:13 +00:00
parent c6990096ac
commit 78c8abf0e3
2 changed files with 16 additions and 0 deletions

View file

@ -299,6 +299,14 @@
#endif
#endif /* DECLSPEC_ALIGN */
#ifndef DECLSPEC_SELECTANY
#if (_MSC_VER >= 1100)
#define DECLSPEC_SELECTANY __declspec(selectany)
#else
#define DECLSPEC_SELECTANY
#endif
#endif
/* Use to silence unused variable warnings when it is intentional */
#define UNREFERENCED_PARAMETER(P) {(P)=(P);}
#define UNREFERENCED_LOCAL_VARIABLE(L) {(L)=(L);}

View file

@ -217,6 +217,14 @@ extern "C" {
# endif
#endif
#ifndef DECLSPEC_SELECTANY
#if (_MSC_VER >= 1100)
#define DECLSPEC_SELECTANY __declspec(selectany)
#else
#define DECLSPEC_SELECTANY
#endif
#endif
#ifndef DECLSPEC_ADDRSAFE
#if (_MSC_VER >= 1200) && (defined(_M_ALPHA) || defined(_M_AXP64))
#define DECLSPEC_ADDRSAFE __declspec(address_safe)