From ff10fdd4ef0df890c7fc55d2b3ee485adf3424fa Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 13 Jan 2016 13:31:34 -0800 Subject: Include when building glibc --- libio/bits/stdio.h | 5 +++-- libio/stdio.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libio/bits/stdio.h b/libio/bits/stdio.h index df57e7c..0c60296 100644 --- a/libio/bits/stdio.h +++ b/libio/bits/stdio.h @@ -27,7 +27,7 @@ #endif -#ifdef __USE_EXTERN_INLINES +#if defined __USE_EXTERN_INLINES || defined _LIBC /* For -D_FORTIFY_SOURCE{,=2} bits/stdio2.h will define a different inline. */ # if !(__USE_FORTIFY_LEVEL > 0 && defined __fortify_function) @@ -138,7 +138,8 @@ __NTH (ferror_unlocked (FILE *__stream)) #endif /* Use extern inlines. */ -#if defined __USE_MISC && defined __GNUC__ && defined __OPTIMIZE__ \ +#if defined __USE_MISC && defined __GNUC__ \ + && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__ \ && !defined __cplusplus /* Perform some simple optimizations. */ # define fread_unlocked(ptr, size, n, stream) \ diff --git a/libio/stdio.h b/libio/stdio.h index d8d7fa0..44738a4 100644 --- a/libio/stdio.h +++ b/libio/stdio.h @@ -929,7 +929,7 @@ extern void funlockfile (FILE *__stream) __THROW; /* If we are compiling with optimizing read this file. It contains several optimizing inline functions and macros. */ -#ifdef __USE_EXTERN_INLINES +#if defined __USE_EXTERN_INLINES || defined _LIBC # include #endif #if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function -- cgit v1.1