[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kexi/3rdparty/kexisql
From:       Jaroslaw Staniek <js () iidea ! pl>
Date:       2003-09-16 21:37:54
[Download RAW message or body]

CVS commit by staniek: 

Added files needed for win32 target. Some modifications for this target.


  A            Makefile.msvc   1.1
  A            kexisql.def   1.1
  A            src/config_win32.h   1.1 [no copyright]
  M +4 -4      src/os.c   1.2
  M +6 -2      src/sqliteInt.h   1.2


--- koffice/kexi/3rdparty/kexisql/src/os.c  #1.1:1.2
@@ -859,6 +859,6 @@ int sqliteOsSeek(OsFile *id, off_t offse
 #if OS_WIN
   {
-    LONG upperBits = offset>>32;
-    LONG lowerBits = offset & 0xffffffff;
+    LONG upperBits = (LONG)(offset>>32);
+    LONG lowerBits = (LONG)(offset & 0xffffffff);
     DWORD rc;
     rc = SetFilePointer(id->h, lowerBits, &upperBits, FILE_BEGIN);
@@ -937,6 +937,6 @@ int sqliteOsTruncate(OsFile *id, off_t n
 #if OS_WIN
   {
-    LONG upperBits = nByte>>32;
-    SetFilePointer(id->h, nByte, &upperBits, FILE_BEGIN);
+    LONG upperBits = (LONG)(nByte>>32);
+    SetFilePointer(id->h, (LONG)(nByte), &upperBits, FILE_BEGIN);
     SetEndOfFile(id->h);
   }

--- koffice/kexi/3rdparty/kexisql/src/sqliteInt.h  #1.1:1.2
@@ -14,5 +14,9 @@
 ** @(#) $Id$
 */
-#include "config.h"
+#if _WIN32
+# include "config_win32.h"
+#else
+# include "config.h"
+#endif
 #include "sqlite.h"
 #include "hash.h"


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic