Files
harbour-core/harbour/contrib/3rd/sqlite3/sqlite3.dif
Viktor Szakats 04b92d3824 2012-09-04 22:05 UTC+0200 Viktor Szakats (harbour syenar.net)
* contrib/3rd/sqlite3/sqlite3.*
  * contrib/3rd/sqlite3/sqlite3.hbp
    * update to 3.7.14

  * contrib/hbide/projectwizard.prg
    ! referring to .hbc files as '.hbc files' not 'Hbc files'
    ; TOFIX: this source is a total mess, replicating parts of
             hbmk2 options in a rigid and limited, fully incompatible
             with hbmk2, whilst hbmk2 supports these out of the box.
             It also contains references to an arbitrary selection of
             non-Harbour SVN project and payware products. Even after 
             reporting it on the list and received the answer that 
             it will get a meaning later. Well, it didn't.
2012-09-04 20:09:56 +00:00

37 lines
1.1 KiB
Plaintext

diff -urN sqlite3.orig\sqlite3.c sqlite3\sqlite3.c
--- sqlite3.orig\sqlite3.c Tue Sep 04 22:03:06 2012
+++ sqlite3\sqlite3.c Tue Sep 04 22:03:07 2012
@@ -26293,7 +26293,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) ){
@@ -31418,6 +31422,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;
@@ -31425,7 +31434,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);