Thank you, the port was very useful for me. For those interested, I am sending the diff results.

Jakub

Nuno Lucas wrote:

Jakub Adamek, dando pulos de alegria, escreveu :

Somebody mentioned here he/she has SQLite 3 working on Pocket PC. Could you please send the sources or diffs?


The 3.0.3 version is available at http://sqlite-wince.sf.net/

No interprocess database locking implemented yet, and there are still
some unresolved issues with Unicode database open (use pure ascii
paths). I am hopping this will be addressed in 3.0.5.

Regards,
~Nuno Lucas

diff c:/temp/sqlite_wce/sqlite3/config.h c:/temp/sqlite_wce/sqlite_original/config.h
2,42d1
< 
< 
< #ifdef _MSC_VER
< /*
< ** Eliminate some Level 3 warnings for Microsoft compilers
< **
< ** C4018: '_' : signed/unsigned mismatch
< ** C4244: '_' : conversion from '_' to '_', possible loss of data
< ** C4267: '_' : conversion from '_' to '_', possible loss of data (MSVC 7.1)
< ** C4761: integral size mismatch in argument; conversion supplied
< */
< #  pragma warning ( disable : 4018 4244 4267 4761 )
< #endif
< 
< 
< /*
< ** Define this to enable thread safe code.
< **
< ** This needs to be enabled in order to enable thread safe code.
< ** If only developing single-threaded applications, no need to
< ** lock the database for certain functions.
< ** This is also used in non-sqlite related code, like when calling
< ** C runtime non-thread safe functions (like localtime).
< */
< //#define THREADSAFE 1
< 
< 
< /*
< ** Define this to omit file locking code.
< **
< ** Only use this if you are sure you will never access a database
< ** simultaneously from two processes.
< ** For a database that is only used by a single instance of your
< ** application (beware for multiple instances!), it is safe (and
< ** faster) to omit this feature.
< ** This is forced on for Windows CE, for now (until I implement the
< ** file locking routines).
< */
< #ifdef _WIN32_WCE
< # define SQLITE_WCE_OMIT_FILELOCK 1
< #endif
---
diff c:/temp/sqlite_wce/sqlite3/os.h c:/temp/sqlite_wce/sqlite_original/os.h
33c33
< #    elif defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__) || 
defined(__MINGW32__) || defined(__BORLANDC__) || defined(_WIN32_WCE)
---
> #    elif defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__) || 
> defined(__MINGW32__) || defined(__BORLANDC__)
diff c:/temp/sqlite_wce/sqlite3/os_common.h 
c:/temp/sqlite_wce/sqlite_original/os_common.h
26d25
< #ifdef SQLITE_DEBUG
27a27
> #ifdef SQLITE_DEBUG
diff c:/temp/sqlite_wce/sqlite3/os_win.c c:/temp/sqlite_wce/sqlite_original/os_win.c
49d48
< #ifndef _WIN32_WCE
177d175
< #endif /* !defined(_WIN32_WCE) */
230d227
< #ifndef _WIN32_WCE
243d239
< #endif
346d341
< #ifndef _WIN32_WCE
592d586
< #endif /* !defined(_WIN32_WCE) */
diff c:/temp/sqlite_wce/sqlite3/os_win.h c:/temp/sqlite_wce/sqlite_original/os_win.h
44,47d43
< #ifdef _WIN32_WCE
<   int delOnClose;         /* To delete file on close */
<   WCHAR * wFilename;      /* filename (for delete & global name generation) */
< #endif
55,72d50
< /*
< ** This are WIN32 API functions not present in WinCE.
< ** They are implemented in the "os_wince.c" file.
< **/
< #ifdef _WIN32_WCE
< #define DeleteFileA                           sqlitewce_DeleteFileA
< #define GetFileAttributesA            sqlitewce_GetFileAttributesA
< #define GetTempPathA                  sqlitewce_GetTempPathA
< #define GetFullPathNameA              sqlitewce_GetFullPathNameA
< #define GetSystemTimeAsFileTime       sqlitewce_GetSystemTimeAsFileTime
< BOOL sqlitewce_DeleteFileA( LPCSTR zFilename );
< DWORD sqlitewce_GetFileAttributesA( LPCSTR lpFileName );
< DWORD sqlitewce_GetTempPathA( DWORD bufLen, LPSTR buf );
< DWORD sqlitewce_GetFullPathNameA( LPCSTR,DWORD,LPSTR,LPSTR* );
< void sqlitewce_GetSystemTimeAsFileTime( LPFILETIME );
< #endif
< 
< 
Pouze v c:/temp/sqlite_wce/sqlite3: os_wince.c

Reply via email to