Skip to content

Commit b65fba8

Browse files
author
wonder
committedMay 1, 2007
Workaround #2 for changed version.h in GRASS cvs >= 26.4.2007
git-svn-id: http://svn.osgeo.org/qgis/trunk@6924 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent c17fe79 commit b65fba8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/plugins/grass/qgsgrassnewmapset.cpp‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,14 @@
6363
// For bug in GPJ_osr_to_grass()
6464
#include "grass/version.h"
6565
// Prevents some compiler warnings from the version.h include
66+
#ifndef GRASS_VERSION_RELEASE
67+
// When using newer version of GRASS (cvs >= 26.4.2007),
68+
// these variables are #defined instead of being static variables.
6669
QString temp1(GRASS_VERSION_STRING);
6770
QString temp2(GRASS_VERSION_MAJOR);
6871
QString temp3(GRASS_VERSION_MINOR);
6972
QString temp4(GRASS_VERSION_RELEASE);
73+
#endif
7074

7175
bool QgsGrassNewMapset::mRunning = false;
7276

0 commit comments

Comments
 (0)
Please sign in to comment.