summaryrefslogtreecommitdiff
path: root/config_h.SH
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-10-24 21:20:21 +0000
committerNicholas Clark <nick@ccl4.org>2005-10-24 21:20:21 +0000
commitce582ceece605be1a68752611f28e5b1a8e80455 (patch)
tree422b44c3eb2a02d29ccc40eed53e892cb22ddc2a /config_h.SH
parent78821a22f30aaed98d9c6643adb5ed18f868dbe7 (diff)
downloadperl-ce582ceece605be1a68752611f28e5b1a8e80455.tar.gz
Add my_sprintf, which is usually just a macro for sprintf, for those
places where we want to use the return value of sprintf. This allows a wrapper to be used for platforms where the C library isn't ANSI- conformant. p4raw-id: //depot/perl@25832
Diffstat (limited to 'config_h.SH')
-rw-r--r--config_h.SH8
1 files changed, 8 insertions, 0 deletions
diff --git a/config_h.SH b/config_h.SH
index 15d8b43749..e6e7f9b7c8 100644
--- a/config_h.SH
+++ b/config_h.SH
@@ -4378,5 +4378,13 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
#$d_ttyname_r HAS_TTYNAME_R /**/
#define TTYNAME_R_PROTO $ttyname_r_proto /**/
+/* SPRINTF_RETURNS_STRLEN:
+ * This variable defines whether sprintf returns the length of the string
+ * (as per the ANSI spec). Some C libraries retain compatibility with
+ * pre-ANSI C and return a pointer to the passed in buffer; for these
+ * this variable will be undef.
+ */
+#$d_sprintf_returns_strlen SPRINTF_RETURNS_STRLEN /**/
+
#endif
!GROK!THIS!