aboutsummaryrefslogtreecommitdiffstats
path: root/trionan.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2008-09-01 13:08:57 +0000
committerDaniel Veillard <veillard@src.gnome.org>2008-09-01 13:08:57 +0000
commitda3fee406da96c344d7b5f4e0631faee74f7e11d (patch)
treeeb4ae2773cbdbd1ead5b13eb997fc204b93303d6 /trionan.c
parent1572425c2774b3fef6af062b87351a0e42c3e172 (diff)
downloadandroid_external_libxml2-da3fee406da96c344d7b5f4e0631faee74f7e11d.tar.gz
android_external_libxml2-da3fee406da96c344d7b5f4e0631faee74f7e11d.tar.bz2
android_external_libxml2-da3fee406da96c344d7b5f4e0631faee74f7e11d.zip
Borland C fix from Moritz Both regenerate, workaround a problem for buffer
* trionan.c: Borland C fix from Moritz Both * testapi.c: regenerate, workaround a problem for buffer testing * xmlIO.c HTMLtree.c: new internal entry point to hide even better xmlAllocOutputBufferInternal * tree.c: harden the code around buffer allocation schemes * parser.c: restore the warning when namespace names are not absolute URIs * runxmlconf.c: continue regression tests if we get the expected number of errors * Makefile.am: run the python tests on make check * xmlsave.c: handle the HTML documents and trees * python/libxml.c: convert python serialization to the xmlSave APIs and avoid some horrible hacks Daniel svn path=/trunk/; revision=3790
Diffstat (limited to 'trionan.c')
-rw-r--r--trionan.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/trionan.c b/trionan.c
index 6eb616a5..95baae1e 100644
--- a/trionan.c
+++ b/trionan.c
@@ -129,7 +129,11 @@ static TRIO_CONST char rcsid[] = "@(#)$Id$";
*/
#define TRIO_DOUBLE_INDEX(x) (((unsigned char *)&internalEndianMagic)[7-(x)])
+#if (defined(__BORLANDC__) && __BORLANDC__ >= 0x0590)
+static TRIO_CONST double internalEndianMagic = 7.949928895127362e-275;
+#else
static TRIO_CONST double internalEndianMagic = 7.949928895127363e-275;
+#endif
/* Mask for the exponent */
static TRIO_CONST unsigned char ieee_754_exponent_mask[] = {