diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/stdio.in.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/stdio.in.h b/lib/stdio.in.h index 2a639c4478e..759c94d7abf 100644 --- a/lib/stdio.in.h +++ b/lib/stdio.in.h | |||
| @@ -84,8 +84,13 @@ | |||
| 84 | except that it indicates to GCC that the supported format string directives | 84 | except that it indicates to GCC that the supported format string directives |
| 85 | are the ones of the system printf(), rather than the ones standardized by | 85 | are the ones of the system printf(), rather than the ones standardized by |
| 86 | ISO C99 and POSIX. */ | 86 | ISO C99 and POSIX. */ |
| 87 | #define _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM(formatstring_parameter, first_argument) \ | 87 | #if GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU |
| 88 | # define _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM(formatstring_parameter, first_argument) \ | ||
| 89 | _GL_ATTRIBUTE_FORMAT_PRINTF (formatstring_parameter, first_argument) | ||
| 90 | #else | ||
| 91 | # define _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM(formatstring_parameter, first_argument) \ | ||
| 88 | _GL_ATTRIBUTE_FORMAT ((__printf__, formatstring_parameter, first_argument)) | 92 | _GL_ATTRIBUTE_FORMAT ((__printf__, formatstring_parameter, first_argument)) |
| 93 | #endif | ||
| 89 | 94 | ||
| 90 | /* _GL_ATTRIBUTE_FORMAT_SCANF | 95 | /* _GL_ATTRIBUTE_FORMAT_SCANF |
| 91 | indicates to GCC that the function takes a format string and arguments, | 96 | indicates to GCC that the function takes a format string and arguments, |