summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCaolán McNamara <cmc@openoffice.org>2010-08-03 10:01:07 +0100
committerCaolán McNamara <cmc@openoffice.org>2010-08-03 10:01:07 +0100
commit479b6371eee5545e45cf2e8ea5cafac335016b10 (patch)
tree610335d512720e1ad7e2ca38d01bfecc70c381ab /test
parentae7bd7f4249ca94e04f837b23bf691b207976084 (diff)
cmcfixes77: #i113503# system non-stlport cppunit with OOo stlport
Diffstat (limited to 'test')
-rw-r--r--test/source/cpp/makefile.mk7
-rw-r--r--test/source/cpp/officeconnection.cxx2
2 files changed, 9 insertions, 0 deletions
diff --git a/test/source/cpp/makefile.mk b/test/source/cpp/makefile.mk
index 8494bd4aa..04eedea3c 100644
--- a/test/source/cpp/makefile.mk
+++ b/test/source/cpp/makefile.mk
@@ -35,6 +35,13 @@ VISIBILITY_HIDDEN = TRUE
CDEFS += -DOOO_DLLIMPLEMENTATION_TEST
CFLAGSCXX += $(CPPUNIT_CFLAGS)
+#building with stlport, but cppunit was not built with stlport
+.IF "$(USE_SYSTEM_STL)"!="YES"
+.IF "$(SYSTEM_CPPUNIT)"=="YES"
+CFLAGSCXX+=-DADAPT_EXT_STL
+.ENDIF
+.ENDIF
+
SLOFILES = \
$(SLO)/getargument.obj \
$(SLO)/officeconnection.obj \
diff --git a/test/source/cpp/officeconnection.cxx b/test/source/cpp/officeconnection.cxx
index ccfd2cd0a..b77fb59e4 100644
--- a/test/source/cpp/officeconnection.cxx
+++ b/test/source/cpp/officeconnection.cxx
@@ -33,7 +33,9 @@
#include "com/sun/star/lang/XMultiServiceFactory.hpp"
#include "com/sun/star/uno/Reference.hxx"
#include "cppuhelper/bootstrap.hxx"
+#include <preextstl.h>
#include "cppunit/TestAssert.h"
+#include <postextstl.h>
#include "osl/process.h"
#include "osl/time.h"
#include "sal/types.h"