summaryrefslogtreecommitdiff
path: root/embed.fnc
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 /embed.fnc
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 'embed.fnc')
-rw-r--r--embed.fnc4
1 files changed, 4 insertions, 0 deletions
diff --git a/embed.fnc b/embed.fnc
index 320c6388f4..f00f7227dd 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -1545,6 +1545,10 @@ Apo |bool |ckwarn_d |U32 w
p |void |offer_nice_chunk |NN void *chunk|U32 chunk_size
+#ifndef SPRINTF_RETURNS_STRLEN
+Apnod |int |my_sprintf |NN char *buffer|NN const char *pat|...
+#endif
+
END_EXTERN_C
/*
* ex: set ts=8 sts=4 sw=4 noet: