* Make some necessary changes to function on old OSes (like CentOS 5.7).

This commit is contained in:
Justin Maggard
2011-12-07 03:55:20 +00:00
parent f210260956
commit c415fbdbf3
5 changed files with 16 additions and 7 deletions

7
sql.h
View File

@ -26,6 +26,13 @@
#include <sqlite3.h>
#ifndef HAVE_SQLITE3_MALLOC
#define sqlite3_malloc(size) sqlite3_mprintf("%*s", size, "")
#endif
#ifndef HAVE_SQLITE3_PREPARE_V2
#define sqlite3_prepare_v2 sqlite3_prepare
#endif
int
sql_exec(sqlite3 *db, const char *fmt, ...);