added wxDEPRECATED_INLINE, use it for wxPixelData<wxBitmap>::UseAlpha() to fix Sun CC compilation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-09-21 12:34:32 +00:00
parent f7e81ed1c2
commit 3694bb76c1
3 changed files with 24 additions and 7 deletions

View File

@@ -517,10 +517,13 @@ typedef int wxWindowID;
/* Macro to issue warning when using deprecated functions with gcc3 or MSVC7: */
#if wxCHECK_GCC_VERSION(3, 1)
#define wxDEPRECATED(x) x __attribute__ ((deprecated))
#define wxDEPRECATED_INLINE(func, body) x { body } __attribute__ ((deprecated))
#elif defined(__VISUALC__) && (__VISUALC__ >= 1300)
#define wxDEPRECATED(x) __declspec(deprecated) x
#define wxDEPRECATED_INLINE(func, body) __declspec(deprecated) x { body }
#else
#define wxDEPRECATED(x) x
#define wxDEPRECATED_INLINE(func, body) func { body }
#endif
/*