svn commit: r457632 - in head/lang/guile2: . files

Gerald Pfeifer gerald at pfeifer.com
Thu Jan 18 12:36:19 UTC 2018


On Sun, 31 Dec 2017, Jan Beich wrote:
>> How about this:
>>
>>     #if defined(__clang__) || (__GNUC__ * 10 + __GNUC_MINOR__ >= 46)
>>     ... ?
> Looks OK. None of lang/gcc* ports have __GNUC_MINOR__ >= 10.

GCC itself consistently uses

  __GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__

so this is what I'd go for (or omitting __GNUC_PATCH_LEVEL__, but
using a factor of 100, not 10).

This is also what the GCC documentation uses when describing these
macros in cpp.info.

Gerald


More information about the svn-ports-all mailing list