Index: src/date.c ================================================================== --- src/date.c +++ src/date.c @@ -14,11 +14,11 @@ ** ** There is only one exported symbol in this file - the function ** sqliteRegisterDateTimeFunctions() found at the bottom of the file. ** All other code has file scope. ** -** $Id: date.c,v 1.4 2003/12/23 16:34:13 drh Exp $ +** $Id: date.c,v 1.5 2003/12/24 01:41:19 dougcurrie Exp $ ** ** NOTES: ** ** SQLite processes all times and dates as Julian Day numbers. The ** dates and times are stored as the number of days since noon @@ -46,16 +46,16 @@ ** ISBM 0-943396-61-1 ** Willmann-Bell, Inc ** Richmond, Virginia (USA) */ #ifndef SQLITE_OMIT_DATETIME_FUNCS +#include "os.h" +#include "sqliteInt.h" #include #include #include #include -#include "sqliteInt.h" -#include "os.h" /* ** A structure for holding a single date and time. */ typedef struct DateTime DateTime; Index: src/os.h ================================================================== --- src/os.h +++ src/os.h @@ -130,10 +130,13 @@ # if defined(_MSC_VER) || defined(__BORLANDC__) typedef __int64 off_t; # else # if !defined(_CYGWIN_TYPES_H) typedef long long off_t; +# if defined(__MINGW32__) +# define _OFF_T_ +# endif # endif # endif # define SQLITE_TEMPNAME_SIZE (MAX_PATH+50) # define SQLITE_MIN_SLEEP_MS 1 #endif