summaryrefslogtreecommitdiff
path: root/win32/config_H.vc
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2017-11-18 18:07:23 +0000
committerAaron Crane <arc@cpan.org>2017-11-18 18:29:51 +0000
commit4059ba8734da3986285ad50019afbd56b586ad25 (patch)
tree72f2d7f4f78af14973ad71527d7d1aef141f00ff /win32/config_H.vc
parentbd1f84ac544f5604940057502e2035f39c92bd4e (diff)
downloadperl-4059ba8734da3986285ad50019afbd56b586ad25.tar.gz
Restore ability to build on platforms without snprintf()
C89 does not in fact define snprintf() or vsnprintf(), and we must therefore probe for the existence of those functions before trying to use them. khw++ for pointing out my earlier error. This reverts part or all of each of the following commits: 13d66b05c6163c3514774d3d11da5f3950e97e98 Rely on C89 vsnprintf() e791399041815a1a45cea3c7f277c7045b96e51b Rely on C89 snprintf() adf7d503e55721c500f0bf66560b8f5df7966fe7 pod/perlhacktips.pod: remove some outdated portability notes
Diffstat (limited to 'win32/config_H.vc')
-rw-r--r--win32/config_H.vc11
1 files changed, 11 insertions, 0 deletions
diff --git a/win32/config_H.vc b/win32/config_H.vc
index 606dd8cf3a..fa09da070c 100644
--- a/win32/config_H.vc
+++ b/win32/config_H.vc
@@ -3221,6 +3221,17 @@
/*#define USE_SITECUSTOMIZE / **/
#endif
+/* HAS_SNPRINTF:
+ * This symbol, if defined, indicates that the snprintf () library
+ * function is available for use.
+ */
+/* HAS_VSNPRINTF:
+ * This symbol, if defined, indicates that the vsnprintf () library
+ * function is available for use.
+ */
+#define HAS_SNPRINTF /**/
+#define HAS_VSNPRINTF /**/
+
/* HAS_SOCKATMARK:
* This symbol, if defined, indicates that the sockatmark routine is
* available to test whether a socket is at the out-of-band mark.