[GRASS-SVN] r71357 - grass/branches/releasebranch_7_2/lib/python/ctypes/ctypesgencore/parser
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 9 08:03:33 PDT 2017
Author: mmetz
Date: 2017-08-09 08:03:33 -0700 (Wed, 09 Aug 2017)
New Revision: 71357
Modified:
grass/branches/releasebranch_7_2/lib/python/ctypes/ctypesgencore/parser/preprocessor.py
Log:
ctypes: fix for FreeBSD (#2940, backport trunk r71356)
Modified: grass/branches/releasebranch_7_2/lib/python/ctypes/ctypesgencore/parser/preprocessor.py
===================================================================
--- grass/branches/releasebranch_7_2/lib/python/ctypes/ctypesgencore/parser/preprocessor.py 2017-08-09 15:02:53 UTC (rev 71356)
+++ grass/branches/releasebranch_7_2/lib/python/ctypes/ctypesgencore/parser/preprocessor.py 2017-08-09 15:03:33 UTC (rev 71357)
@@ -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