From owner-svn-src-head@FreeBSD.ORG Thu May 30 06:20:24 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 01F6F5A5; Thu, 30 May 2013 06:20:24 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id E9898181; Thu, 30 May 2013 06:20:23 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4U6KNkv044180; Thu, 30 May 2013 06:20:23 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4U6KNwP044178; Thu, 30 May 2013 06:20:23 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201305300620.r4U6KNwP044178@svn.freebsd.org> From: Ed Schouten Date: Thu, 30 May 2013 06:20:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r251123 - head/lib/libcompiler_rt X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 May 2013 06:20:24 -0000 Author: ed Date: Thu May 30 06:20:23 2013 New Revision: 251123 URL: http://svnweb.freebsd.org/changeset/base/251123 Log: Use #ifdef instead of #if defined. This makes these tests a bit more consistent with the tests done at the bottom of the file. Modified: head/lib/libcompiler_rt/__sync_fetch_and_op_n.h head/lib/libcompiler_rt/__sync_val_compare_and_swap_n.h Modified: head/lib/libcompiler_rt/__sync_fetch_and_op_n.h ============================================================================== --- head/lib/libcompiler_rt/__sync_fetch_and_op_n.h Thu May 30 05:27:36 2013 (r251122) +++ head/lib/libcompiler_rt/__sync_fetch_and_op_n.h Thu May 30 06:20:23 2013 (r251123) @@ -30,7 +30,7 @@ __FBSDID("$FreeBSD$"); #include #include -#if defined __clang__ +#ifdef __clang__ static TYPE atomic_func(volatile TYPE *ptr, TYPE value, ...) #else Modified: head/lib/libcompiler_rt/__sync_val_compare_and_swap_n.h ============================================================================== --- head/lib/libcompiler_rt/__sync_val_compare_and_swap_n.h Thu May 30 05:27:36 2013 (r251122) +++ head/lib/libcompiler_rt/__sync_val_compare_and_swap_n.h Thu May 30 06:20:23 2013 (r251123) @@ -30,7 +30,7 @@ __FBSDID("$FreeBSD$"); #include #include -#if defined __clang__ +#ifdef __clang__ static TYPE atomic_func(volatile TYPE *ptr, TYPE oldval, TYPE newval, ...) #else