浏览代码

ctypes: fix for FreeBSD (https://trac.osgeo.org/grass/ticket/2940)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@71356 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 7 年之前
父节点
当前提交
1ce4d14330
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      lib/python/ctypes/ctypesgencore/parser/preprocessor.py

+ 2 - 0
lib/python/ctypes/ctypesgencore/parser/preprocessor.py

@@ -150,6 +150,8 @@ class PreprocessorParser(object):
         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