[GRASS-SVN] r71356 - grass/trunk/lib/python/ctypes/ctypesgencore/parser

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 9 08:02:53 PDT 2017


Author: mmetz
Date: 2017-08-09 08:02:53 -0700 (Wed, 09 Aug 2017)
New Revision: 71356

Modified:
   grass/trunk/lib/python/ctypes/ctypesgencore/parser/preprocessor.py
Log:
ctypes: fix for FreeBSD (#2940)

Modified: grass/trunk/lib/python/ctypes/ctypesgencore/parser/preprocessor.py
===================================================================
--- grass/trunk/lib/python/ctypes/ctypesgencore/parser/preprocessor.py	2017-08-09 12:34:48 UTC (rev 71355)
+++ grass/trunk/lib/python/ctypes/ctypesgencore/parser/preprocessor.py	2017-08-09 15:02:53 UTC (rev 71356)
@@ -150,6 +150,8 @@
         if sys.platform == 'darwin':
             cmd += " -U __BLOCKS__"
         cmd += " -U __GNUC__"
+        if sys.platform.startswith('freebsd'):
+            cmd += " -D __GNUCLIKE_BUILTIN_STDARG"
         cmd += " -dD"
         for path in self.options.include_search_paths:
             cmd += " -I%s" % path



More information about the grass-commit mailing list