 ** On success, return RC_OK.  Return LIBCU_ERROR if the time and date
 ** cannot be found.
 */
-static int winCurrentTimeInt64(vsystem *pVfs, sqlite3_int64 *piNow){
+static int winCurrentTimeInt64(vsystem *pVfs, int64_t *piNow){
 	/* FILETIME structure is a 64-bit value representing the number of
 	100-nanosecond intervals since January 1, 1601 (= JD 2305813.5).
 	*/
 	FILETIME ft;
-	static const sqlite3_int64 winFiletimeEpoch = 23058135*(sqlite3_int64)8640000;
+	static const int64_t winFiletimeEpoch = 23058135*(int64_t)8640000;
 #ifdef LIBCU_TEST
-	static const sqlite3_int64 unixEpoch = 24405875*(sqlite3_int64)8640000;
+	static const int64_t unixEpoch = 24405875*(int64_t)8640000;
 #endif
 	/* 2^32 - to avoid use of LL and warnings in gcc */
-	static const sqlite3_int64 max32BitValue =
-		(sqlite3_int64)2000000000 + (sqlite3_int64)2000000000 +
-		(sqlite3_int64)294967296;
+	static const int64_t max32BitValue =
+		(int64_t)2000000000 + (int64_t)2000000000 +
+		(int64_t)294967296;
 
 #if LIBCU_OS_WINCE
 	SYSTEMTIME time;

		}
		if( osIsNT() ){
			LPWSTR zTemp;
			nByte = osGetFullPathNameW((LPCWSTR)zConverted, 0, 0, 0);
			if( nByte==0 ){
				sqlite3_free(zConverted);
				return winLogError(LIBCU_CANTOPEN_FULLPATH, osGetLastError(),
					"winFullPathname1", zRelative);
			}
			nByte += 3;
			zTemp = sqlite3MallocZero( nByte*sizeof(zTemp[0]) );
			if( zTemp==0 ){
				sqlite3_free(zConverted);
				return LIBCU_IOERR_NOMEM_BKPT;
			}
			nByte = osGetFullPathNameW((LPCWSTR)zConverted, nByte, zTemp, 0);
			if( nByte==0 ){
				sqlite3_free(zConverted);
				sqlite3_free(zTemp);
				return winLogError(LIBCU_CANTOPEN_FULLPATH, osGetLastError(),
					"winFullPathname2", zRelative);
			}
			sqlite3_free(zConverted);
			zOut = winUnicodeToUtf8(zTemp);
			sqlite3_free(zTemp);
		}
#ifdef LIBCU_WIN32_HAS_ANSI
		else{
			char *zTemp;
			nByte = osGetFullPathNameA((char*)zConverted, 0, 0, 0);
			if( nByte==0 ){
				sqlite3_free(zConverted);
				return winLogError(LIBCU_CANTOPEN_FULLPATH, osGetLastError(),
					"winFullPathname3", zRelative);
			}
			nByte += 3;
			zTemp = sqlite3MallocZero( nByte*sizeof(zTemp[0]) );
			if( zTemp==0 ){
				sqlite3_free(zConverted);
				return LIBCU_IOERR_NOMEM_BKPT;
			}
			nByte = osGetFullPathNameA((char*)zConverted, nByte, zTemp, 0);
			if( nByte==0 ){
				sqlite3_free(zConverted);
				sqlite3_free(zTemp);
				return winLogError(LIBCU_CANTOPEN_FULLPATH, osGetLastError(),
					"winFullPathname4", zRelative);
			}
			sqlite3_free(zConverted);
			zOut = winMbcsToUtf8(zTemp, osAreFileApisANSI());
			sqlite3_free(zTemp);
		}
#endif
		if( zOut ){
			sqlite3_snprintf(MIN(nFull, pVfs->mxPathname), zFull, "%s", zOut);
			sqlite3_free(zOut);
			return RC_OK;
		}else{
			return LIBCU_IOERR_NOMEM_BKPT;

#endif

	*piNow = winFiletimeEpoch +
		((((int64_t)ft.dwHighDateTime)*max32BitValue) +
		(int64_t)ft.dwLowDateTime)/(int64_t)10000;

#ifdef LIBCU_TEST
	if( sqlite3_current_time ){
		*piNow = 1000*(int64_t)sqlite3_current_time + unixEpoch;
	}
#endif
	UNUSED_SYMBOL(pVfs);
