Re: gcc poison, how to catch use of strcpy()?
Re: gcc poison, how to catch use of strcpy()?
- Subject: Re: gcc poison, how to catch use of strcpy()?
- From: Shawn Erickson <email@hidden>
- Date: Tue, 19 May 2009 10:01:59 -0700
On Tue, May 19, 2009 at 9:55 AM, Sean McBride <email@hidden> wrote:
> Ever wished Apple would deprecate things so that you'd be warned against using them?
/*
* only certain compilers support __attribute__((deprecated))
*/
#if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) &&
(__GNUC_MINOR__ >= 1)))
#define DEPRECATED_ATTRIBUTE __attribute__((deprecated))
#else
#define DEPRECATED_ATTRIBUTE
#endif
/*
* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED
*
* Used on functions introduced in Mac OS X 10.0,
* and deprecated in Mac OS X 10.0
*/
#define AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED
DEPRECATED_ATTRIBUTE
etc.
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden