CHANGED src/main.c
Index: src/main.c
===================================================================
--- src/main.c
+++ src/main.c
@@ -42,10 +42,15 @@
 /*
 ** Maximum number of auxiliary parameters on reports
 */
 #define MX_AUX  5
 
+#if !defined(_MSC_VER)
+#define __int64  long long int
+#define __unit64 unsigned long long int
+#endif
+
 /*
 ** All global variables are in this structure.
 */
 struct Global {
   int argc; char **argv;  /* Command-line arguments to the program */
@@ -52,11 +57,11 @@
   int isConst;            /* True if the output is unchanging */
   sqlite3 *db;            /* The connection to the databases */
   sqlite3 *dbConfig;      /* Separate connection for global_config table */
   int useAttach;          /* True if global_config is attached to repository */
   int configOpen;         /* True if the config database is open */
-  long long int now;      /* Seconds since 1970 */
+  __int64 now;      /* Seconds since 1970 */
   int repositoryOpen;     /* True if the main repository database is open */
   char *zRepositoryName;  /* Name of the repository database */
   const char *zMainDbType;/* "configdb", "localdb", or "repository" */
   const char *zHome;      /* Name of user home directory */
   int localOpen;          /* True if the local database is open */

