diff options
author | 2015-01-30 11:36:06 -0800 | |
---|---|---|
committer | 2015-01-30 11:36:06 -0800 | |
commit | 9afc7cdb5b57f6b15125d4d207baa7c61ee50287 (patch) | |
tree | 119dc36aa45c73d91aa2d25330dae25155bdf582 /3rdparty/sqlite3/sqlite3.h | |
parent | 723823ce111597d185f618a436d7df43144ddc9b (diff) |
fix compile on MSVC 2012 (nw)
Diffstat (limited to '3rdparty/sqlite3/sqlite3.h')
-rw-r--r-- | 3rdparty/sqlite3/sqlite3.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/3rdparty/sqlite3/sqlite3.h b/3rdparty/sqlite3/sqlite3.h index c31f126dbbe..352f4909fbc 100644 --- a/3rdparty/sqlite3/sqlite3.h +++ b/3rdparty/sqlite3/sqlite3.h @@ -256,6 +256,13 @@ typedef struct sqlite3 sqlite3; typedef sqlite_int64 sqlite3_int64; typedef sqlite_uint64 sqlite3_uint64; +/* pointer-sized values */ +#ifdef PTR64 +typedef sqlite3_uint64 FPTR; +#else +typedef unsigned int FPTR; +#endif + /* ** If compiling for a processor that lacks floating point support, ** substitute integer for floating-point. @@ -4382,7 +4389,7 @@ SQLITE_API void sqlite3_set_auxdata(sqlite3_context*, int N, void*, void (*)(voi */ typedef void (*sqlite3_destructor_type)(void*); #define SQLITE_STATIC ((sqlite3_destructor_type)0) -#define SQLITE_TRANSIENT ((sqlite3_destructor_type)-1) +#define SQLITE_TRANSIENT ((sqlite3_destructor_type)(FPTR)-1) /* ** CAPI3REF: Setting The Result Of An SQL Function |