From 61adb6a1ba66d0990ccc72b6a105797987c0a4f3 Mon Sep 17 00:00:00 2001 From: "U-Andreas-PC\\Andreas" Date: Mon, 21 Mar 2011 15:11:34 +0100 Subject: tested on Windows 7 64-bit with VC8 (Platform SDK 7.0) fixed bug in test9 --- tests/Makefile.W32 | 9 ++++++--- tests/test9.cpp | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/Makefile.W32 b/tests/Makefile.W32 index 5f60596..0e3cf5f 100644 --- a/tests/Makefile.W32 +++ b/tests/Makefile.W32 @@ -5,10 +5,13 @@ SUBDIRS = INCLUDE_DIRS = \ /I$(TOPDIR)\include /I. \ /I$(TOPDIR)\sqlite-$(SQLITE_VERSION) \ - /D_WIN32_WINNT=0x400 /I"$(PLATFORM_SDK_DIR)\Include" + /D_WIN32_WINNT=0x500 /I"$(PLATFORM_SDK_DIR)\Include" -INCLUDE_LDFLAGS = \ - /LIBPATH:"$(PLATFORM_SDK_DIR)\lib" +# enable only for really old platform SDKs +#SDK_LDFLAGS = /LIBPATH:"$(PLATFORM_SDK_DIR)\lib\x64" +#SDK_LDFLAGS = /LIBPATH:"$(PLATFORM_SDK_DIR)\lib" +#INCLUDE_LDFLAGS = \ +# $(SDK_LDFLAGS) INCLUDE_LIBS = \ $(TOPDIR)\src\sqlite3xx.lib \ diff --git a/tests/test9.cpp b/tests/test9.cpp index e3ae237..cad0f05 100644 --- a/tests/test9.cpp +++ b/tests/test9.cpp @@ -71,7 +71,7 @@ PRODUCER_PREPARE_AGAIN: for( int j = 0; j < NOF_PRODUCER_OPS; j++ ) { PRODUCER_INS_AGAIN: try { - result r = t.prepared( "ins" )( no * 100000 + i * 1000 + j ).exec( ); + result r = t.prepared( "ins" )( (int)no * 100000 + i * 1000 + j ).exec( ); assert( r.affected_rows( ) == 1 ); t.commit( ); } catch( const database_locked& e ) { -- cgit v1.2.3-54-g00ecf