mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
qgis.cpp: namespace str() and xstr() macros
This commit is contained in:
parent
57c30bd172
commit
457310de6b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user