From owner-freebsd-current@FreeBSD.ORG Tue Nov 6 22:45:18 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 52C02DA0 for ; Tue, 6 Nov 2012 22:45:18 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from hammer.pct.niksun.com (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id F2F5F8FC1E; Tue, 6 Nov 2012 22:45:17 +0000 (UTC) Message-ID: <509992CF.2040900@FreeBSD.org> Date: Tue, 06 Nov 2012 17:44:31 -0500 From: Jung-uk Kim User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121031 Thunderbird/16.0.2 MIME-Version: 1.0 To: Larry Rosenman Subject: Re: detecting clang from source code? References: In-Reply-To: X-Enigmail-Version: 1.4.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2012 22:45:18 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2012-11-06 17:37:41 -0500, Larry Rosenman wrote: > 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. #ifdef __clang__ /* clang-specific stuff */ #else /* Something else */ #endif Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlCZks8ACgkQmlay1b9qnVPIagCfXtDRXzUkPI5PowyCjFFxp6HU bHQAn3yAddLwonekcrkl8O9/0BSRVHR2 =CUn6 -----END PGP SIGNATURE-----