Przeglądaj źródła

fix compilation error on Windows caused by https://trac.osgeo.org/grass/changeset/73982

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73998 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 6 lat temu
rodzic
commit
40a9da4c9d
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      include/gis.h

+ 3 - 3
include/gis.h

@@ -68,10 +68,10 @@ static const char *GRASS_copyright __attribute__ ((unused))
 #endif
 
 /*! \brief Generate warning if function return value is unused */
-#if __GNUC_PREREQ (3,4)
-    #define WARN_UNUSED_RESULT __attribute__ ((warn_unused_result))
+#if __GNUC__ && (__GNUC__ >= 3 && __GNUC_MINOR__ >= 4)
+#   define WARN_UNUSED_RESULT __attribute__ ((warn_unused_result))
 #else
-    #define WARN_UNUSED_RESULT
+#   define WARN_UNUSED_RESULT
 #endif
 
 /*!