fixing deprecated constructors for osx
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -582,6 +582,17 @@ typedef short int WXTYPE;
|
||||
#define wxDEPRECATED(x) x
|
||||
#endif
|
||||
|
||||
/*
|
||||
explicitly specifying inline allows gcc < 3.4 to
|
||||
handle the deprecation attribute even in the constructor.
|
||||
doesn't seem to work on Apple's gcc 4.0.1 unless using -O0
|
||||
*/
|
||||
#if defined( __DARWIN__ ) && !defined(__WXDEBUG__)
|
||||
#define wxDEPRECATED_CONSTRUCTOR(x) x
|
||||
#else
|
||||
#define wxDEPRECATED_CONSTRUCTOR(x) wxDEPRECATED( inline x)
|
||||
#endif
|
||||
|
||||
/*
|
||||
Macro which marks the function as being deprecated but also defines it
|
||||
inline.
|
||||
|
Reference in New Issue
Block a user