diff options
author | ed <ed@FreeBSD.org> | 2013-05-30 06:20:23 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2013-05-30 06:20:23 +0000 |
commit | 7278ecd11a6c714d32d26bfba163f17ec0e92458 (patch) | |
tree | a5b09c9cced024b873db7bb329004485e3bc6316 /lib/libcompiler_rt | |
parent | fd1293ba3128f2876d895dcfaedb4f8272c2749c (diff) | |
download | FreeBSD-src-7278ecd11a6c714d32d26bfba163f17ec0e92458.zip FreeBSD-src-7278ecd11a6c714d32d26bfba163f17ec0e92458.tar.gz |
Use #ifdef instead of #if defined.
This makes these tests a bit more consistent with the tests done at the
bottom of the file.
Diffstat (limited to 'lib/libcompiler_rt')
-rw-r--r-- | lib/libcompiler_rt/__sync_fetch_and_op_n.h | 2 | ||||
-rw-r--r-- | lib/libcompiler_rt/__sync_val_compare_and_swap_n.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcompiler_rt/__sync_fetch_and_op_n.h b/lib/libcompiler_rt/__sync_fetch_and_op_n.h index 994e271..524c1cf 100644 --- a/lib/libcompiler_rt/__sync_fetch_and_op_n.h +++ b/lib/libcompiler_rt/__sync_fetch_and_op_n.h @@ -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 diff --git a/lib/libcompiler_rt/__sync_val_compare_and_swap_n.h b/lib/libcompiler_rt/__sync_val_compare_and_swap_n.h index ee9d025..b6017c9 100644 --- a/lib/libcompiler_rt/__sync_val_compare_and_swap_n.h +++ b/lib/libcompiler_rt/__sync_val_compare_and_swap_n.h @@ -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 |