Files
harbour-core/harbour/contrib/3rd/sqlite3/sqlite3.dif
Przemyslaw Czerpak f3ec4bbc7c 2012-02-20 16:25 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* harbour/src/3rd/zlib/gzlib.c
    ! do not use _lseeki64 in MinGWCE builds - such function does not
      exists in CTRL

  * harbour/contrib/3rd/sqlite3/sqlite3.c
    ! fixed declaration of 64bit integer constant value in WinCE builds
    ; TOFIX: in WInCE builds the following error is generated:
                implicit declaration of function 'osUnlockFileEx'
             and of course such functions does not exists (it's internal
             SQLITE3 macro)

  * harbour/contrib/3rd/sqlite3/sqlite3.hbp
    ! fixed declaration of _WIN32_WCE macro - it should be set to
      WinCE API version number.

  * harbour/contrib/3rd/sqlite3/sqlite3.dif
    * rediffed with ../../../bin/hb3rdpat.hbs -rediff

  * harbour/contrib/hbzebra/qrcode.c
    * pacified warning
2012-02-20 15:25:25 +00:00

37 lines
1.1 KiB
Plaintext

diff -urN sqlite3.orig/sqlite3.c sqlite3/sqlite3.c
--- sqlite3.orig/sqlite3.c 2012-02-20 16:20:53.627278687 +0100
+++ sqlite3/sqlite3.c 2012-02-20 16:20:53.637278687 +0100
@@ -28424,7 +28424,11 @@
** is the same technique used by glibc to implement posix_fallocate()
** on systems that do not have a real fallocate() system call.
*/
+#if __minix
+ int nBlk = 4096; /* MFS default; good enough for now */
+#else
int nBlk = buf.st_blksize; /* File-system block size */
+#endif
i64 iWrite; /* Next offset to write to */
if( robust_ftruncate(pFile->h, nSize) ){
@@ -33206,6 +33210,11 @@
** substitute.
*/
/* #include <time.h> */
+#if defined( _MSC_VER )
+#define _LL( num ) num
+#else
+#define _LL( num ) num##LL
+#endif
struct tm *__cdecl localtime(const time_t *t)
{
static struct tm y;
@@ -33213,7 +33222,7 @@
SYSTEMTIME pTm;
sqlite3_int64 t64;
t64 = *t;
- t64 = (t64 + 11644473600)*10000000;
+ t64 = (t64 + _LL(11644473600))*10000000;
uTm.dwLowDateTime = (DWORD)(t64 & 0xFFFFFFFF);
uTm.dwHighDateTime= (DWORD)(t64 >> 32);
osFileTimeToLocalFileTime(&uTm,&lTm);