$OpenBSD: patch-src_sqlite_h_in,v 1.1 2008/07/23 17:31:17 martynas Exp $ --- src/sqlite.h.in.orig Mon May 12 15:39:56 2008 +++ src/sqlite.h.in Sat Jul 19 15:13:05 2008 @@ -35,6 +35,7 @@ #ifndef _SQLITE3_H_ #define _SQLITE3_H_ #include /* Needed for the definition of va_list */ +#include /* ** Make sure we can call this stuff from C++. @@ -188,6 +189,9 @@ typedef struct sqlite3 sqlite3; ** {F10202} The [sqlite_uint64] and [sqlite3_uint64] types specify ** a 64-bit unsigned integer. */ +typedef int64_t sqlite_int64; +typedef uint64_t sqlite_uint64; +#if 0 #ifdef SQLITE_INT64_TYPE typedef SQLITE_INT64_TYPE sqlite_int64; typedef unsigned SQLITE_INT64_TYPE sqlite_uint64; @@ -197,6 +201,7 @@ typedef struct sqlite3 sqlite3; #else typedef long long int sqlite_int64; typedef unsigned long long int sqlite_uint64; +#endif #endif typedef sqlite_int64 sqlite3_int64; typedef sqlite_uint64 sqlite3_uint64;