diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.W32 | 9 | ||||
-rw-r--r-- | tests/test9.cpp | 2 |
2 files changed, 7 insertions, 4 deletions
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 ) { |