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

Alexey Dokuchaev danfe at FreeBSD.org
Thu Jan 18 13:35:14 UTC 2018


On Thu, Jan 18, 2018 at 01:26:55PM +0100, Gerald Pfeifer wrote:
> 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).

Yes, I was considering it, but using factor of 100 meant larger numbers
and also our COMPILER_VERSION uses factor of 10.

./danfe


More information about the svn-ports-all mailing list