Ticket #3481: stdio.h.diff

File stdio.h.diff, 766 bytes (added by stippi, 15 years ago)

Alternative stdio.h patch that keeps the semantics.

  • headers/posix/libio.h

     
    217217#ifdef __cplusplus
    218218#   define __INLINE inline
    219219#else
    220 #   define __INLINE extern __inline
     220/* GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
     221   inline semantics.  */
     222//#if __GNUC_PREREQ(4, 3)  // <- Gives parse error. Don't know why.
     223#   if 4 < __GNUC__ || (4 == __GNUC__ && 3 <= __GNUC_MINOR__)
     224#       ifdef __STDC__VERSION__
     225#           if __STDC__VERSION__ + 0 > 199900
     226#               define __INLINE __attribute__((__extern_inline__)) __inline
     227#           endif
     228#       endif
     229#   endif
     230#   ifndef __INLINE
     231#       define __INLINE extern __inline
     232#   endif
    221233#endif
    222234
    223235__INLINE int