Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 May 2013 06:20:23 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r251123 - head/lib/libcompiler_rt
Message-ID:  <201305300620.r4U6KNwP044178@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <sys/types.h>
 #include <machine/atomic.h>
 
-#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 <sys/types.h>
 #include <machine/atomic.h>
 
-#if defined __clang__
+#ifdef __clang__
 static TYPE
 atomic_func(volatile TYPE *ptr, TYPE oldval, TYPE newval, ...)
 #else



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305300620.r4U6KNwP044178>