Define ERLANG_SQLITE3_LOAD_EXTENSION by default

Fixes #30
This commit is contained in:
Alexey Romanov
2014-10-09 23:56:13 +04:00
parent 475096d698
commit 54048aae5b
2 changed files with 5 additions and 3 deletions

View File

@@ -36,9 +36,11 @@ If you want to use erlang-sqlite3 on an embedded device, it can be cross-compile
2. `nmake`. 2. `nmake`.
## DLL search path ### Potential compilation problems
Note that on Windows, `sqlite3.dll` usually won't be installed in the system-wide DLL search path. In this case, it should be placed in the working directory of your application. * On Windows, `sqlite3.dll` usually won't be installed in the system-wide DLL search path. In this case, it should be placed in the working directory of your application.
* If SQLite was built with `SQLITE_OMIT_LOAD_EXTENSION` option, you'll need to undefine `ERLANG_SQLITE3_LOAD_EXTENSION` macro in <c_src/sqlite3_drv.h>.
## Running the test suite ## Running the test suite

View File

@@ -4,7 +4,7 @@
#endif #endif
#define _CRT_SECURE_NO_WARNINGS // secure functions aren't cross-platform #define _CRT_SECURE_NO_WARNINGS // secure functions aren't cross-platform
// #define ERLANG_SQLITE3_LOAD_EXTENSION // uncomment if you need to enable loading extensions #define ERLANG_SQLITE3_LOAD_EXTENSION // comment out if SQLite is built with SQLITE_OMIT_LOAD_EXTENSION
#include <erl_driver.h> #include <erl_driver.h>
#include <erl_interface.h> #include <erl_interface.h>