summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--perl.h3
-rw-r--r--win32/config.bc1
-rw-r--r--win32/config.gc1
-rw-r--r--win32/config.vc1
-rw-r--r--win32/config.vc641
-rw-r--r--win32/config_H.bc4
-rw-r--r--win32/config_H.gc4
-rw-r--r--win32/config_H.vc4
-rw-r--r--win32/config_H.vc644
9 files changed, 23 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index e7c0c5abe7..c68ea8279a 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 a274308421..4e892e9af4 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 70ffd17bca..2652139d43 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 71aa0b021e..ecae562c2a 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 acea8bae73..43d4041dfb 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 a7f2500907..fab75f2a78 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 8d47e3a2aa..e872524c26 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 23e83b1358..9a6872fa94 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 d8bf30502d..44c47ddcbd 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 /**/