svn commit: r251123 - head/lib/libcompiler_rt

Ed Schouten ed at FreeBSD.org
Thu May 30 06:20:24 UTC 2013


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


More information about the svn-src-all mailing list