qgis.cpp: namespace str() and xstr() macros

This commit is contained in:
Even Rouault 2024-11-30 04:06:57 +01:00 committed by Nyall Dawson
parent 57c30bd172
commit 457310de6b

View File

@ -35,8 +35,8 @@
#include <geos_c.h>
#include <ogr_api.h>
#define xstr(x) str(x)
#define str(x) #x
#define qgis_xstr(x) qgis_str(x)
#define qgis_str(x) #x
// Version constants
//
@ -305,7 +305,7 @@ int Qgis::geosVersionMinor()
int Qgis::geosVersionPatch()
{
static const int version = atoi( xstr( GEOS_VERSION_PATCH ) );
static const int version = atoi( qgis_xstr( GEOS_VERSION_PATCH ) );
return version;
}