detecting clang from source code?

From: Larry Rosenman <ler_at_lerctr.org>
Date: Tue, 06 Nov 2012 16:37:41 -0600
Are there any defines that code can use in #ifdef/#if et al to tell 
it's being compiled with clang?

Vic Abell (lsof author) is cleaning up lsof to compile cleanly with 
clang and would like to know, since the
default is now clang on -CURRENT.

Thanks!

Larry Rosenman
Maintainer sysutils/lsof
Received on Tue Nov 06 2012 - 21:37:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:32 UTC