[Libreoffice-commits] .: sc/qa

Tor Lillqvist tml at kemper.freedesktop.org
Fri Nov 5 02:14:23 PDT 2010


 sc/qa/unit/ucalc.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit ca3fd44348936dd2f7e536bab7cf0d70ea4da2ed
Author: Tor Lillqvist <tlillqvist at novell.com>
Date:   Fri Nov 5 11:10:11 2010 +0200

    Fix Windows build error
    
    Include <windows.h> explicitly, surrounded by the prewin.h and
    postwin.h headers. Also #undef ERROR to avoid a clash. Approved by
    caolan.

diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 366eff5..bd48571 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -16,6 +16,13 @@
 //                 the need for manually calling regcomp and knowing what
 //                 services we need, and in what .so they are implemented
 
+#ifdef WNT
+# include <tools/prewin.h>
+# include <windows.h>
+# include <tools/postwin.h>
+# undef ERROR
+#endif
+
 #include "sal/config.h"
 
 #include <cppuhelper/bootstrap.hxx>


More information about the Libreoffice-commits mailing list