Re: [HACKERS] PATCH: Avoid use of __attribute__ when building with old Sun compiler versions

2016-09-14 Thread Robert Haas
On Fri, Sep 2, 2016 at 11:55 AM, Andy Grundman wrote: > The use of __attribute__ is currently enabled by checking for > __SUNPRO_C. However, this compiler only added support for > __attribute__ keywords in version 5.10 [1]. This patch adds a version > check to only enable

[HACKERS] PATCH: Avoid use of __attribute__ when building with old Sun compiler versions

2016-09-02 Thread Andy Grundman
Hi, The use of __attribute__ is currently enabled by checking for __SUNPRO_C. However, this compiler only added support for __attribute__ keywords in version 5.10 [1]. This patch adds a version check to only enable this for supported versions [2]. I have tested this with Sun C 5.8 on a Solaris 9