Re: [xml] Fix for xmllib2-2.6.32 on CodeGear/Borland C++ Builder 2007




The patch had a bad line wrap -- sorry, here is the hopefully working version.

Moritz


--- __history\trionan.c.~5~     Sat Aug 30 01:22:02 2008
+++ trionan.c   Mon Sep 01 10:57:33 2008
@@ -129,7 +129,11 @@
  */
 #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[] = {




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]