summaryrefslogtreecommitdiff
path: root/connectivity/workben
diff options
context:
space:
mode:
authordkenny <dkenny@openoffice.org>2001-05-23 09:55:48 +0000
committerdkenny <dkenny@openoffice.org>2001-05-23 09:55:48 +0000
commit7e021dc37f73981b8a455bcaca763633a24bef65 (patch)
treed98cdb92f13e11c21c42f4365c2e2e7398e32e2c /connectivity/workben
parent232a83787903402fa7879cb522aae0836c0a48fb (diff)
Changes to make it compile and run on Win32
Diffstat (limited to 'connectivity/workben')
-rw-r--r--connectivity/workben/testmoz/main.cxx10
-rw-r--r--connectivity/workben/testmoz/makefile.mk16
2 files changed, 20 insertions, 6 deletions
diff --git a/connectivity/workben/testmoz/main.cxx b/connectivity/workben/testmoz/main.cxx
index 25f3e63ed9fb..0c97e449e240 100644
--- a/connectivity/workben/testmoz/main.cxx
+++ b/connectivity/workben/testmoz/main.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: main.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: dkenny $ $Date: 2001-05-09 12:37:14 $
+ * last change: $Author: dkenny $ $Date: 2001-05-23 10:55:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -104,6 +104,8 @@
#include <rtl/ustring>
+#include <stdio.h>
+
using namespace connectivity;
using namespace com::sun::star::sdbc;
using namespace com::sun::star::sdb;
@@ -127,7 +129,7 @@ void printXResultSet( Reference<XResultSet> &xRes )
for(sal_Int32 i=1;i<=xMeta->getColumnCount();++i)
{
// printf(aPat.getStr(), xMeta->getColumnName(i).getStr());
- char *str = OUtoCStr(xMeta->getColumnName(i));
+ const char *str = OUtoCStr(xMeta->getColumnName(i));
// if ( i < 3 ) {
// printf( aPat_Short, str );
// } else {
@@ -141,7 +143,7 @@ void printXResultSet( Reference<XResultSet> &xRes )
{
for(sal_Int32 j=1;j<=xMeta->getColumnCount();++j)
try {
- char *str = OUtoCStr(xRow->getString(j));
+ const char *str = OUtoCStr(xRow->getString(j));
// if ( j < 3 ) {
// printf( aPat_Short, str );
// } else {
diff --git a/connectivity/workben/testmoz/makefile.mk b/connectivity/workben/testmoz/makefile.mk
index 8ea2034f2501..0ec8f8c17549 100644
--- a/connectivity/workben/testmoz/makefile.mk
+++ b/connectivity/workben/testmoz/makefile.mk
@@ -2,9 +2,9 @@
#
# $RCSfile: makefile.mk,v $
#
-# $Revision: 1.2 $
+# $Revision: 1.3 $
#
-# last change: $Author: dkenny $ $Date: 2001-05-09 12:37:14 $
+# last change: $Author: dkenny $ $Date: 2001-05-23 10:55:48 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
@@ -79,6 +79,17 @@ OBJFILES= $(OBJ)$/main.obj
APP1TARGET= $(TARGET)
APP1OBJS= $(OBJFILES)
+.IF $(GUI) = "WNT"
+APPSTDLIBS=$(SALLIB) \
+ $(VOSLIB) \
+ $(CPPULIB) \
+ $(CPPUHELPERLIB) \
+ $(UCBHELPERLIB) \
+ $(DBTOOLSLIB) \
+ $(COMPHELPERLIB) \
+ isdbc2.lib icalc.lib imozab.lib icomphelp2.lib \
+ $(SLB)$/sql.lib
+.ELSE
APPSTDLIBS=$(SALLIB) \
$(VOSLIB) \
$(CPPULIB) \
@@ -87,6 +98,7 @@ APPSTDLIBS=$(SALLIB) \
$(DBTOOLSLIB) \
-lsdbc2 -lcalc$(UPD)$(DLLSUFFIX) -lmozab$(UPD)$(DLLSUFFIX) \
`grep -v '^$$' $(SLB)$/sql.lib | sed -e "s@^@$(PRJ)/@"`
+.ENDIF
# -lsdbc2 -lcalc619li -lmozab619li \