[GRASS-SVN] r71203 - grass/branches/releasebranch_7_0/include

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


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

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

Modified: grass/branches/releasebranch_7_0/include/gmath.h
===================================================================
--- grass/branches/releasebranch_7_0/include/gmath.h	2017-06-21 14:08:39 UTC (rev 71202)
+++ grass/branches/releasebranch_7_0/include/gmath.h	2017-06-21 14:10:21 UTC (rev 71203)
@@ -28,6 +28,12 @@
  /* only include if available */
 #include <grass/la.h>
 #endif
+
+#ifdef CTYPESGEN
+#undef __attribute__
+#define __attribute__(x)
+#endif
+
 #include <stddef.h>
 
 /*solver names */



More information about the grass-commit mailing list