Use glibc_likely instead __builtin_expect.
[jlayton/glibc.git] / libio / iofgets.c
index bf7f84ad3e070fd3d4c833d16c3f0fcba6adda35..1b708cad0d6fa9dd8a18895ea868f84454aeb973 100644 (file)
@@ -39,7 +39,7 @@ _IO_fgets (buf, n, fp)
   CHECK_FILE (fp, NULL);
   if (n <= 0)
     return NULL;
-  if (__builtin_expect (n == 1, 0))
+  if (__glibc_unlikely (n == 1))
     {
       /* Another irregular case: since we have to store a NUL byte and
         there is only room for exactly one byte, we don't have to