Dear Alexei, Kanazawa-san and Alan, Thank you for the info about the versions of SunPro C supporting visibility feature.
Googling "SUNPRO_C 0x550", I found that several widely used software, like, Xorg, pixman, glib, ICU are using 0x550 as the lowest version to enable visibility feature. I think, although yet I have no access to older SunPro C, doing same with other widely used software is not so bad idea. Please let me use 0x550. Soon I will commit my patch. In later, I will tweak configure.raw to make CFLAGS and FT_EXPORT() consistent always. Regards, mpsuzuki Kiyoshi KANAZAWA wrote: > Hello, > > If this has been introduced to Oracle cc 12.6 (developerstudio12.6), > "__SUNPRO_C >= 0x5150" is correct, I guess. > > % cc -V > cc: Studio 12.6 Sun C 5.15 SunOS_i386 2017/05/30 > % cat print___SUNPRO_C.c > #include <stdio.h> > > void main (void) > { > printf ("__SUNPRO_C = 0x%x\n", __SUNPRO_C); > } > > % cc print___SUNPRO_C.c > % a.out > __SUNPRO_C = 0x5150 > > > Regards, > > --- Kiyoshi > > ----- Original Message ----- > From: Alexei Podtelezhnikov <apodt...@gmail.com> > To: suzuki toshiya <mpsuz...@hiroshima-u.ac.jp> > Cc: Alan Coopersmith <alan.coopersm...@oracle.com>; Kiyoshi KANAZAWA > <yoi_no_myou...@yahoo.co.jp>; "freetype-devel@nongnu.org" > <freetype-devel@nongnu.org> > Date: 2018/5/4, Fri 11:04 > Subject: Re: [ft-devel] [freetype-2.9.1] FT_Init_FreeType is missing with cc > on Solaris x64 > > On Thu, May 3, 2018 at 7:50 PM, suzuki toshiya > <mpsuz...@hiroshima-u.ac.jp<mailto:mpsuz...@hiroshima-u.ac.jp>> wrote: >> I guess, latest Oracle cc may accept both of __global and >> __attribute__((visibility)) styles, and both of --xldscope and >> -fvisibility= styles. > > This has only been introduced to Oracle cc 12.6 in 2017. > https://docs.oracle.com/cd/E77782_01/html/E77784/gncki.html > >> If so, there's any preference? If the style like GCC was >> introduced in later (for the compatibility with GCC), using >> GCC-unlike style would be more generic for SunPro C. > > Please apply your patch with __SUNPRO_C >= 0x550. > > > _______________________________________________ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel