summaryrefslogtreecommitdiffstats
path: root/generic/tclStrToD.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-01-11 16:01:36 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-01-11 16:01:36 (GMT)
commita14063d19ac966fcf3c5c822dc2d0dc478b73a81 (patch)
treefea08907f02f3d199cd00f2be7872d577fa95750 /generic/tclStrToD.c
parent7ff4e84af2affaee83eff03e1b2c73f72e77a4a0 (diff)
downloadtcl-a14063d19ac966fcf3c5c822dc2d0dc478b73a81.zip
tcl-a14063d19ac966fcf3c5c822dc2d0dc478b73a81.tar.gz
tcl-a14063d19ac966fcf3c5c822dc2d0dc478b73a81.tar.bz2
Make tclStrToD.c compile on systems without inttypes.h
Diffstat (limited to 'generic/tclStrToD.c')
-rw-r--r--generic/tclStrToD.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/generic/tclStrToD.c b/generic/tclStrToD.c
index 7aee804..d03548c 100644
--- a/generic/tclStrToD.c
+++ b/generic/tclStrToD.c
@@ -22,6 +22,11 @@
#define copysign _copysign
#endif
+#ifndef PRIx64
+# define PRIx64 TCL_LL_MODIFIER "x"
+#endif
+
+
/*
* This code supports (at least hypothetically), IBM, Cray, VAX and IEEE-754
* floating point; of these, only IEEE-754 can represent NaN. IEEE-754 can be