@@ -437,7 +437,7 @@ QgsSpatiaLiteProvider::QgsSpatiaLiteProvider( QString const &uri )
437
437
bool alreadyDone = false ;
438
438
bool ret;
439
439
440
- #ifdef SPATIALITE_RECENT_VERSION
440
+ #ifdef SPATIALITE_VERSION_GE_4_0_0
441
441
// only if libspatialite version is >= 4.0.0
442
442
gaiaVectorLayersListPtr list = NULL ;
443
443
gaiaVectorLayerPtr lyr = NULL ;
@@ -497,7 +497,7 @@ QgsSpatiaLiteProvider::QgsSpatiaLiteProvider( QString const &uri )
497
497
498
498
alreadyDone = false ;
499
499
500
- #ifdef SPATIALITE_RECENT_VERSION
500
+ #ifdef SPATIALITE_VERSION_GE_4_0_0
501
501
if ( lyr != NULL )
502
502
{
503
503
// using the v.4.0 AbstractInterface
@@ -571,7 +571,7 @@ QgsSpatiaLiteProvider::~QgsSpatiaLiteProvider()
571
571
closeDb ();
572
572
}
573
573
574
- #ifdef SPATIALITE_RECENT_VERSION
574
+ #ifdef SPATIALITE_VERSION_GE_4_0_0
575
575
// only if libspatialite version is >= 4.0.0
576
576
void QgsSpatiaLiteProvider::loadFieldsAbstractInterface ( gaiaVectorLayerPtr lyr )
577
577
{
@@ -4362,7 +4362,7 @@ QString QgsSpatiaLiteProvider::quotedValue( QString value )
4362
4362
return value.prepend ( " '" ).append ( " '" );
4363
4363
}
4364
4364
4365
- #ifdef SPATIALITE_RECENT_VERSION
4365
+ #ifdef SPATIALITE_VERSION_GE_4_0_0
4366
4366
// only if libspatialite version is >= 4.0.0
4367
4367
bool QgsSpatiaLiteProvider::checkLayerTypeAbstractInterface ( gaiaVectorLayerPtr lyr )
4368
4368
{
@@ -4589,7 +4589,7 @@ bool QgsSpatiaLiteProvider::checkLayerType()
4589
4589
return count == 1 ;
4590
4590
}
4591
4591
4592
- #ifdef SPATIALITE_RECENT_VERSION
4592
+ #ifdef SPATIALITE_VERSION_GE_4_0_0
4593
4593
// only if libspatialite version is >= 4.0.0
4594
4594
bool QgsSpatiaLiteProvider::getGeometryDetailsAbstractInterface ( gaiaVectorLayerPtr lyr )
4595
4595
{
@@ -5125,7 +5125,7 @@ bool QgsSpatiaLiteProvider::getSridDetails()
5125
5125
return false ;
5126
5126
}
5127
5127
5128
- #ifdef SPATIALITE_RECENT_VERSION
5128
+ #ifdef SPATIALITE_VERSION_GE_4_0_0
5129
5129
// only if libspatialite version is >= 4.0.0
5130
5130
bool QgsSpatiaLiteProvider::getTableSummaryAbstractInterface ( gaiaVectorLayerPtr lyr )
5131
5131
{
@@ -5363,7 +5363,7 @@ QGISEXTERN bool deleteLayer( const QString& dbPath, const QString& tableName, QS
5363
5363
}
5364
5364
sqlite3* sqlite_handle = hndl->handle ();
5365
5365
5366
- #ifdef SPATIALITE_RECENT_VERSION
5366
+ #ifdef SPATIALITE_VERSION_GE_4_0_0
5367
5367
// only if libspatialite version is >= 4.0.0
5368
5368
{
5369
5369
// if libspatialite is v.4.0 (or higher) using the internal library
0 commit comments