Add missing d_printf_format_null/PRINTF_FORMAT_NULL_OK to Win32 canned
authorSteve Hay <SteveHay@planit.com>
Mon, 27 Nov 2006 17:44:27 +0000 (17:44 +0000)
committerSteve Hay <SteveHay@planit.com>
Mon, 27 Nov 2006 17:44:27 +0000 (17:44 +0000)
configs

See:
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2006-11/msg00923.html

p4raw-id: //depot/perl@29397

perl.h
win32/config.bc
win32/config.gc
win32/config.vc
win32/config.vc64
win32/config_H.bc
win32/config_H.gc
win32/config_H.vc
win32/config_H.vc64

diff --git a/perl.h b/perl.h
index e7c0c5a..c68ea82 100644 (file)
--- 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
index a274308..4e892e9 100644 (file)
@@ -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'
index 70ffd17..2652139 100644 (file)
@@ -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'
index 71aa0b0..ecae562 100644 (file)
@@ -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'
index acea8ba..43d4041 100644 (file)
@@ -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'
index a7f2500..fab75f2 100644 (file)
 /* 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.
  */
  *     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        /**/
index 8d47e3a..e872524 100644 (file)
 /* 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.
  */
  *     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        /**/
index 23e83b1..9a6872f 100644 (file)
 /* 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.
  */
  *     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        /**/
index d8bf305..44c47dd 100644 (file)
 /* 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.
  */
  *     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        /**/