Use glibc_likely instead __builtin_expect.
[jlayton/glibc.git] / dlfcn / dlopen.c
index 2db6610a77e6bf432a02f5274478cbd95f98cd2b..fa58c4cebff4bc5d2f087b216a6d2c15b1ffa64b 100644 (file)
@@ -74,7 +74,7 @@ void *
 __dlopen (const char *file, int mode DL_CALLER_DECL)
 {
 # ifdef SHARED
-  if (__builtin_expect (_dlfcn_hook != NULL, 0))
+  if (__glibc_unlikely (_dlfcn_hook != NULL))
     return _dlfcn_hook->dlopen (file, mode, DL_CALLER);
 # endif