File tree 2 files changed +11
-10
lines changed
2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -50,15 +50,6 @@ extern "C"
50
50
#endif
51
51
}
52
52
53
- #if GRASS_VERSION_MAJOR >= 7
54
- #define G_suppress_masking Rast_suppress_masking
55
- #define BOUND_BOX bound_box
56
- #endif
57
-
58
- #if GRASS_VERSION_MAJOR > 7 || (GRASS_VERSION_MAJOR == 7 && GRASS_VERSION_MINOR >= 1)
59
- #define G_available_mapsets G_get_available_mapsets
60
- #endif
61
-
62
53
#if !defined(GRASS_VERSION_MAJOR) || \
63
54
!defined(GRASS_VERSION_MINOR) || \
64
55
GRASS_VERSION_MAJOR<6 || \
Original file line number Diff line number Diff line change @@ -42,13 +42,23 @@ class QgsRectangle;
42
42
#define EXPAND (x ) STR(x)
43
43
#define GRASS_VERSION_RELEASE_STRING EXPAND ( GRASS_VERSION_RELEASE )
44
44
45
- #if (GRASS_VERSION_MAJOR < 7) || (GRASS_VERSION_MAJOR == 7 && GRASS_VERSION_MINOR == 0)
45
+ #if (GRASS_VERSION_MAJOR < 7)
46
46
#define G_TRY try { if ( !setjmp ( QgsGrass::jumper ) )
47
47
#else
48
48
#define G_TRY try { if ( !setjmp (*G_fatal_longjmp (1 )) )
49
49
#endif
50
50
#define G_CATCH else { throw QgsGrass::Exception ( QgsGrass::errorMessage () ); } } catch
51
51
52
+ #if GRASS_VERSION_MAJOR >= 7
53
+ #define G_available_mapsets G_get_available_mapsets
54
+ #define G__mapset_permissions2 G_mapset_permissions2
55
+ #define G_suppress_masking Rast_suppress_masking
56
+ #define G__get_window G_get_element_window
57
+ #define G__getenv G_getenv_nofatal
58
+ #define G__setenv G_setenv_nogisrc
59
+ #define BOUND_BOX bound_box
60
+ #endif
61
+
52
62
/* !
53
63
Methods for C library initialization and error handling.
54
64
*/
You can’t perform that action at this time.
0 commit comments