RE: Regarding compiling - __attribute__((deprecated))

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just checked again. Sorry, you are right.

----------------------------------------
> Date: Fri, 10 Aug 2012 19:42:19 +0100
> Subject: Re: Regarding compiling - __attribute__((deprecated))
> From: jwakely.gcc@xxxxxxxxx
> To: xmlymt@xxxxxxxxxxx
> CC: gcc-help@xxxxxxxxxxx
>
> On 10/08/2012, LiLy <xmlymt@xxxxxxxxxxx> wrote:
> >
> > Hi,
> > An attribute '__attribute__((deprecated))' can be used in a function
> > declaration to indicate the function is deprecated.
>
> This mail is off topic on this list, it would be appropriate on the
> gcc-help list.
>
> > I found some compiling issues as below and need your answers.
> > 1. __declspec (deprecated) not supported in gcc 4.5.3. Perhaps also not
> > supported by later releases.
> > __declspec (deprecated) is used by VS on windows,
> > __attribute__((deprecated)) is the equivalent in gcc. While __declspec is
> > the keyword in C/C++ standard, it seems the form of '__declspec
> > (deprecated)' is more standard? Will gcc also support '__declspec
> > (deprecated)' syntax in the future?
>
> __declspec is not a keyword in the C or C++ standards. Neither form is
> "more" standard.
 		 	   		  


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux