Fossil
Check-in [73c24ae363]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

SHA1 Hash:73c24ae363ee1b2234a3e322df124577ab3c7dcf
Date: 2010-03-18 14:20:33
User: drh
Comment:Fix some compiler warnings on windows.

Tags And Properties
Changes
[hide diffs]

Changes to src/db.c

@@ -516,10 +516,14 @@
     z = 0;
   }
   db_finalize(&s);
   return z;
 }
+
+#ifdef __MINGW32__
+extern char *sqlite3_win32_mbcs_to_utf8(const char*);
+#endif
 
 /*
 ** Initialize a new database file with the given schema.  If anything
 ** goes wrong, call db_err() to exit.
 */

Changes to src/diffcmd.c

@@ -49,11 +49,11 @@
 }
 
 /*
 ** This function implements a cross-platform "system()" interface.
 */
-int portable_system(char *zOrigCmd){
+int portable_system(const char *zOrigCmd){
   int rc;
 #ifdef __MINGW32__
   /* On windows, we have to put double-quotes around the entire command.
   ** Who knows why - this is just the way windows works.
   */

Changes to src/winhttp.c

@@ -137,13 +137,13 @@
 ** Start a listening socket and process incoming HTTP requests on
 ** that socket.
 */
 void win32_http_server(
   int mnPort, int mxPort,   /* Range of allowed TCP port numbers */
-  char *zBrowser,           /* Command to launch browser.  (Or NULL) */
-  char *zStopper,           /* Stop server when this file is exists (Or NULL) */
-  char *zNotFound           /* The --notfound option, or NULL */
+  const char *zBrowser,     /* Command to launch browser.  (Or NULL) */
+  const char *zStopper,     /* Stop server when this file is exists (Or NULL) */
+  const char *zNotFound     /* The --notfound option, or NULL */
 ){
   WSADATA wd;
   SOCKET s = INVALID_SOCKET;
   SOCKADDR_IN addr;
   int idCnt = 0;