summaryrefslogtreecommitdiff
path: root/gmp-impl.h
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-09-26 00:16:15 +0200
committerKevin Ryde <user42@zip.com.au>2001-09-26 00:16:15 +0200
commit1c1629a47eafb5feb37adc9bbf90d5b60018df05 (patch)
tree45a09a4736d991d207963d3f1a332b0f6e6abc86 /gmp-impl.h
parentb9e9d8dd87e17819c5e956f1bf8108be2ad8d49d (diff)
downloadgmp-1c1629a47eafb5feb37adc9bbf90d5b60018df05.tar.gz
* gmp-impl.h, doprnt.c (va_copy): Move to gmp-impl.h.
Diffstat (limited to 'gmp-impl.h')
-rw-r--r--gmp-impl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gmp-impl.h b/gmp-impl.h
index 0e4a1f5b8..ad055d441 100644
--- a/gmp-impl.h
+++ b/gmp-impl.h
@@ -128,6 +128,16 @@ MA 02111-1307, USA. */
} while (0)
#endif
+/* va_copy is a standard part of C99, and we expect it'll be available on
+ earlier systems too if they need something other than a plain "=", though
+ possibly as __va_copy (for example gcc in strict C89 mode). */
+#if ! defined (va_copy) && defined (__va_copy)
+#define va_copy(dst,src) __va_copy(dst,src)
+#endif
+#if ! defined (va_copy)
+#define va_copy(dst,src) do { (dst) = (src); } while (0)
+#endif
+
#if defined (__cplusplus)
extern "C" {