[libxslt] Enforce two digit exponent under MSVC



commit 7219c6c3eee38ef6cc9bba451828d962f1563656
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Thu Feb 25 14:53:12 2016 +0100

    Enforce two digit exponent under MSVC
    
    This makes the test output match UNIX.

 xsltproc/xsltproc.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c
index e8b4f34..e39552a 100644
--- a/xsltproc/xsltproc.c
+++ b/xsltproc/xsltproc.c
@@ -560,6 +560,10 @@ main(int argc, char **argv)
     srand(time(NULL));
     xmlInitMemory();
 
+#if defined(_MSC_VER) && _MSC_VER < 1900
+    _set_output_format(_TWO_DIGIT_EXPONENT);
+#endif
+
     LIBXML_TEST_VERSION
 
     sec = xsltNewSecurityPrefs();


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