summaryrefslogtreecommitdiff
path: root/config_h.SH
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 /config_h.SH
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 'config_h.SH')
-rwxr-xr-xconfig_h.SH11
1 files changed, 11 insertions, 0 deletions
diff --git a/config_h.SH b/config_h.SH
index 89f5950c66..e5e08eef54 100755
--- a/config_h.SH
+++ b/config_h.SH
@@ -3278,6 +3278,17 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
#$usesitecustomize 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.
+ */
+#$d_snprintf HAS_SNPRINTF /**/
+#$d_vsnprintf 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.