From: Steve Hay Date: Mon, 27 Nov 2006 17:44:27 +0000 (+0000) Subject: Add missing d_printf_format_null/PRINTF_FORMAT_NULL_OK to Win32 canned X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=63cdf24b4587df192f2f3f9a9c78a397a2e527db;p=p5sagit%2Fp5-mst-13.2.git Add missing d_printf_format_null/PRINTF_FORMAT_NULL_OK to Win32 canned configs See: http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2006-11/msg00923.html p4raw-id: //depot/perl@29397 --- diff --git a/perl.h b/perl.h index e7c0c5a..c68ea82 100644 --- a/perl.h +++ b/perl.h @@ -2643,6 +2643,9 @@ typedef struct clone_params CLONE_PARAMS; #if defined __GNUC__ && !defined(__INTEL_COMPILER) # if __GNUC__ >= 3 /* 3.0 -> */ /* XXX Verify this version */ # define HASATTRIBUTE_FORMAT +# if defined __MINGW32__ +# define PRINTF_FORMAT_NULL_OK +# endif # endif # if __GNUC__ >= 3 /* 3.0 -> */ # define HASATTRIBUTE_MALLOC diff --git a/win32/config.bc b/win32/config.bc index a274308..4e892e9 100644 --- a/win32/config.bc +++ b/win32/config.bc @@ -331,6 +331,7 @@ d_phostname='undef' d_pipe='define' d_poll='undef' d_portable='define' +d_printf_format_null='undef' d_procselfexe='undef' d_pthread_atfork='undef' d_pthread_attr_setscope='undef' diff --git a/win32/config.gc b/win32/config.gc index 70ffd17..2652139 100644 --- a/win32/config.gc +++ b/win32/config.gc @@ -331,6 +331,7 @@ d_phostname='undef' d_pipe='define' d_poll='undef' d_portable='define' +d_printf_format_null='undef' d_procselfexe='undef' d_pthread_atfork='undef' d_pthread_attr_setscope='undef' diff --git a/win32/config.vc b/win32/config.vc index 71aa0b0..ecae562 100644 --- a/win32/config.vc +++ b/win32/config.vc @@ -331,6 +331,7 @@ d_phostname='undef' d_pipe='define' d_poll='undef' d_portable='define' +d_printf_format_null='undef' d_procselfexe='undef' d_pthread_atfork='undef' d_pthread_attr_setscope='undef' diff --git a/win32/config.vc64 b/win32/config.vc64 index acea8ba..43d4041 100644 --- a/win32/config.vc64 +++ b/win32/config.vc64 @@ -331,6 +331,7 @@ d_phostname='undef' d_pipe='define' d_poll='undef' d_portable='define' +d_printf_format_null='undef' d_procselfexe='undef' d_pthread_atfork='undef' d_pthread_attr_setscope='undef' diff --git a/win32/config_H.bc b/win32/config_H.bc index a7f2500..fab75f2 100644 --- a/win32/config_H.bc +++ b/win32/config_H.bc @@ -1137,6 +1137,9 @@ /* HASATTRIBUTE_FORMAT: * Can we handle GCC attribute for checking printf-style formats */ +/* PRINTF_FORMAT_NULL_OK: + * Allows __printf__ format to be null when checking printf-style + */ /* HASATTRIBUTE_MALLOC: * Can we handle GCC attribute for malloc-style functions. */ @@ -1156,6 +1159,7 @@ * Can we handle GCC attribute for warning on unused results */ /*#define HASATTRIBUTE_FORMAT /**/ +/*#define PRINTF_FORMAT_NULL_OK /**/ /*#define HASATTRIBUTE_MALLOC /**/ /*#define HASATTRIBUTE_NONNULL /**/ /*#define HASATTRIBUTE_NORETURN /**/ diff --git a/win32/config_H.gc b/win32/config_H.gc index 8d47e3a..e872524 100644 --- a/win32/config_H.gc +++ b/win32/config_H.gc @@ -1147,6 +1147,9 @@ /* HASATTRIBUTE_FORMAT: * Can we handle GCC attribute for checking printf-style formats */ +/* PRINTF_FORMAT_NULL_OK: + * Allows __printf__ format to be null when checking printf-style + */ /* HASATTRIBUTE_MALLOC: * Can we handle GCC attribute for malloc-style functions. */ @@ -1166,6 +1169,7 @@ * Can we handle GCC attribute for warning on unused results */ /*#define HASATTRIBUTE_FORMAT /**/ +/*#define PRINTF_FORMAT_NULL_OK /**/ /*#define HASATTRIBUTE_MALLOC /**/ /*#define HASATTRIBUTE_NONNULL /**/ /*#define HASATTRIBUTE_NORETURN /**/ diff --git a/win32/config_H.vc b/win32/config_H.vc index 23e83b1..9a6872f 100644 --- a/win32/config_H.vc +++ b/win32/config_H.vc @@ -1143,6 +1143,9 @@ /* HASATTRIBUTE_FORMAT: * Can we handle GCC attribute for checking printf-style formats */ +/* PRINTF_FORMAT_NULL_OK: + * Allows __printf__ format to be null when checking printf-style + */ /* HASATTRIBUTE_MALLOC: * Can we handle GCC attribute for malloc-style functions. */ @@ -1162,6 +1165,7 @@ * Can we handle GCC attribute for warning on unused results */ /*#define HASATTRIBUTE_FORMAT /**/ +/*#define PRINTF_FORMAT_NULL_OK /**/ /*#define HASATTRIBUTE_MALLOC /**/ /*#define HASATTRIBUTE_NONNULL /**/ /*#define HASATTRIBUTE_NORETURN /**/ diff --git a/win32/config_H.vc64 b/win32/config_H.vc64 index d8bf305..44c47dd 100644 --- a/win32/config_H.vc64 +++ b/win32/config_H.vc64 @@ -1137,6 +1137,9 @@ /* HASATTRIBUTE_FORMAT: * Can we handle GCC attribute for checking printf-style formats */ +/* PRINTF_FORMAT_NULL_OK: + * Allows __printf__ format to be null when checking printf-style + */ /* HASATTRIBUTE_MALLOC: * Can we handle GCC attribute for malloc-style functions. */ @@ -1156,6 +1159,7 @@ * Can we handle GCC attribute for warning on unused results */ /*#define HASATTRIBUTE_FORMAT /**/ +/*#define PRINTF_FORMAT_NULL_OK /**/ /*#define HASATTRIBUTE_MALLOC /**/ /*#define HASATTRIBUTE_NONNULL /**/ /*#define HASATTRIBUTE_NORETURN /**/