[Libreoffice-commits] .: sal/qa
Caolán McNamara
caolan at kemper.freedesktop.org
Fri Mar 18 03:17:29 PDT 2011
sal/qa/rtl/doublelock/rtl_doublelocking.cxx | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit a1f02261063d91544d354f31e18547a0dfbdbbaf
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Mar 18 10:17:24 2011 +0000
ensure this builds under windows
diff --git a/sal/qa/rtl/doublelock/rtl_doublelocking.cxx b/sal/qa/rtl/doublelock/rtl_doublelocking.cxx
index 638dbea..bfb7ec3 100644
--- a/sal/qa/rtl/doublelock/rtl_doublelocking.cxx
+++ b/sal/qa/rtl/doublelock/rtl_doublelocking.cxx
@@ -43,6 +43,13 @@
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/plugin/TestPlugIn.h>
+#ifdef WNT
+#include <windows.h>
+#else
+#include <unistd.h>
+#include <time.h>
+#endif
+
// -----------------------------------------------------------------------------
#define CONST_TEST_STRING "gregorian"
@@ -210,6 +217,8 @@ namespace rtl_DoubleLocking
#if OSL_DEBUG_LEVEL > 2
printf("Value in Thread #1 is %d\n", nValueOK);
printf("Value in Thread #2 is %d\n", nValueOK2);
+#else
+ (void)nValueOK2;
#endif
sal_Int32 nValueFails = 0;
More information about the Libreoffice-commits
mailing list