Re: [Tracker] patch to make trunk build with sun compiler



On 01/12/08 10:35, Jerry Tan wrote:
OKï

Refer to http://gcc.gnu.org/onlinedocs/gcc/Function-Names.html
In C, |__PRETTY_FUNCTION__| is yet another name for |__func__|.

so I will use __func__ here.

here is the patch.

and now trunk can be build with Sun Studio 12.

Hi Jerry!

Note that G_GNUC_[PRETTY_]FUNCTION are deprecated since glib 2.16, see
bug #409360


On vie, 2008-11-07 at 18:09 +0800, Jerry Tan wrote:

__func__ and __PRETTY_FUNCTION__  are not supported by sun compiler,

add this patch to make it build.

Hi Jerry,

I think the #define should be put in tracker-os-dependent.h. I also don't think we should be defining the same thing more than once.

Plus, are those extra includes actually needed to build?

I will draft up a patch at some point and commit it later on. If you could test your build when it is committed that would be great!

--
Regards,
Martyn



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