detecting clang from source code?

Larry Rosenman ler at
Tue Nov 6 22:37:42 UTC 2012

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.


Larry Rosenman
Maintainer sysutils/lsof

More information about the freebsd-current mailing list