[GRASS-SVN] r71201 - grass/trunk/include

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


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

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

Modified: grass/trunk/include/gmath.h
===================================================================
--- grass/trunk/include/gmath.h	2017-06-21 13:08:09 UTC (rev 71200)
+++ grass/trunk/include/gmath.h	2017-06-21 14:07:39 UTC (rev 71201)
@@ -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