]> sourceware.org Git - glibc.git/commitdiff
Simplify an #if #else #endif
authorRafael Avila de Espindola <rafael@espindo.la>
Wed, 31 Oct 2018 17:31:06 +0000 (10:31 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 31 Oct 2018 17:32:40 +0000 (10:32 -0700)
The #else of two nested #if clauses were identical.

* sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
#endif.

Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
ChangeLog
sysdeps/unix/sysv/linux/sysdep-vdso.h

index b798b63f79176f70b934396e48e226f3059a1e68..0a0788910ed2bbbaae352dea42eef72c28c5d233 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-31  Rafael Avila de Espindola  <rafael@espindo.la>
+
+       * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
+       #endif.
+
 2018-10-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
 
        * manual/errno.texi (EIEIO): Document how translators should
index 1912c1c156866105bc84dcdad685dfbe451670ec..7f894c5e02c093bace9b3e490ebfeb393833d58d 100644 (file)
      funcptr (args)
 #endif
 
-#ifdef SHARED
+#if defined SHARED && defined HAVE_VSYSCALL
 
-# ifdef HAVE_VSYSCALL
+# include <libc-vdso.h>
 
-#  include <libc-vdso.h>
-
-#  define INLINE_VSYSCALL(name, nr, args...)                                 \
+# define INLINE_VSYSCALL(name, nr, args...)                                  \
   ({                                                                         \
     __label__ out;                                                           \
     __label__ iserr;                                                         \
@@ -61,7 +59,7 @@
     sc_ret;                                                                  \
   })
 
-#  define INTERNAL_VSYSCALL(name, err, nr, args...)                          \
+# define INTERNAL_VSYSCALL(name, err, nr, args...)                           \
   ({                                                                         \
     __label__ out;                                                           \
     long v_ret;                                                                      \
   out:                                                                       \
     v_ret;                                                                   \
   })
-# else
-#  define INLINE_VSYSCALL(name, nr, args...) \
-    INLINE_SYSCALL (name, nr, ##args)
-#  define INTERNAL_VSYSCALL(name, err, nr, args...) \
-    INTERNAL_SYSCALL (name, err, nr, ##args)
-# endif /* HAVE_VSYSCALL  */
-
-# else /* SHARED  */
+#else
 
-#  define INLINE_VSYSCALL(name, nr, args...) \
-    INLINE_SYSCALL (name, nr, ##args)
-#  define INTERNAL_VSYSCALL(name, err, nr, args...) \
-    INTERNAL_SYSCALL (name, err, nr, ##args)
+# define INLINE_VSYSCALL(name, nr, args...) \
+   INLINE_SYSCALL (name, nr, ##args)
+# define INTERNAL_VSYSCALL(name, err, nr, args...) \
+   INTERNAL_SYSCALL (name, err, nr, ##args)
 
-#endif /* SHARED  */
+#endif /* defined SHARED && defined HAVE_VSYSCALL */
 
 #endif /* SYSDEP_VDSO_LINUX_H  */
This page took 0.070221 seconds and 5 git commands to generate.