-
Notifications
You must be signed in to change notification settings - Fork 24
jsqlite R4.2.0.mk
Mark Johnson edited this page Mar 8, 2018
·
5 revisions
jssqlite 20120209
The original source code can be found in the archive
directory
-
Note:
- this code has been adapted, due to changes in
spatialite
starting with version-
4.1.0
- where
spatialite_init
was declared DEPRECATED
- where
-
- this code has been adapted, due to changes in
This function is now DEPRECATED because is not reentrant (not thread safe);
use spatialite_init_ex() for all new development.
/* definition to expand macro then apply to pragma message */
#define VALUE_TO_STRING(x) #x
#define VALUE(x) VALUE_TO_STRING(x)
#define VAR_NAME_VALUE(var) #var "=" VALUE(var)
// print out values
#pragma message(VAR_NAME_VALUE(HAVE_SPATIALITE41))
#pragma message(VAR_NAME_VALUE(HAVE_RASTERLITE2))
/*
#if HAVE_SPATIALITE41 == 1
/* Since 4.1.1: spatialite_init(1) is now DEPRECATED because is not reentrant (not thread safe) */
/* Initializes a SpatiaLite connection. */
void *cache = spatialite_alloc_connection();
spatialite_init_ex((sqlite3 *)h->sqlite,cache,0);
#pragma message(VAR_NAME_VALUE(HAVE_SPATIALITE41))
#if HAVE_RASTERLITE2 == 1
/* Initializes the (Rasterlite2) library */
rl2_init((sqlite3 *)h->sqlite,0);
#pragma message(VAR_NAME_VALUE(HAVE_RASTERLITE2))
#endif
*/
- used by:
-
code changes:
- TODO
2014-05-05: Mark Johnson, Berlin Germany