Fix compilation on macos 11.0

This commit is contained in:
Paweł Chmielowski
2020-12-10 14:56:46 +01:00
parent 8cd942c650
commit 093dedefa7
3 changed files with 2 additions and 4 deletions

View File

@@ -400,7 +400,7 @@ static int changes(sqlite3_drv_t *drv, char *buf, int len) {
}
static int enable_load_extension(sqlite3_drv_t* drv, char *buf, int len) {
#ifdef ERLANG_SQLITE3_LOAD_EXTENSION
#ifndef ERLANG_SQLITE3_NO_LOAD_EXTENSION
char enable = buf[0];
int result = sqlite3_enable_load_extension(drv->db, (int) enable);
if (result) {

View File

@@ -4,7 +4,6 @@
#endif
#define _CRT_SECURE_NO_WARNINGS // secure functions aren't cross-platform
#define ERLANG_SQLITE3_LOAD_EXTENSION // comment out if SQLite is built with SQLITE_OMIT_LOAD_EXTENSION
#include <erl_driver.h>
#include <ei.h>