[GRASS-SVN] r71202 - grass/branches/releasebranch_7_2/include

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 21 07:08:39 PDT 2017


Author: neteler
Date: 2017-06-21 07:08:39 -0700 (Wed, 21 Jun 2017)
New Revision: 71202

Modified:
   grass/branches/releasebranch_7_2/include/gmath.h
Log:
gmath lib: avoid syntax error with __attribute__ in ctypes wrapping (trunk r71201, trac #3331)

Modified: grass/branches/releasebranch_7_2/include/gmath.h
===================================================================
--- grass/branches/releasebranch_7_2/include/gmath.h	2017-06-21 14:07:39 UTC (rev 71201)
+++ grass/branches/releasebranch_7_2/include/gmath.h	2017-06-21 14:08:39 UTC (rev 71202)
@@ -24,6 +24,12 @@
 #define GRASS_GMATH_H
 
 #include <grass/config.h>
+
+#ifdef CTYPESGEN
+#undef __attribute__
+#define __attribute__(x)
+#endif
+
 #include <stddef.h>
 
 /*solver names */



More information about the grass-commit mailing list