We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c0a5f95 + e6d1d0c commit adfb0bdCopy full SHA for adfb0bd
setup.py
@@ -34,6 +34,7 @@ def build_extensions(self):
34
_compile = c._compile
35
36
def c_compile(obj, src, ext, cc_args, extra_postargs, pp_opts):
37
+ cc_args = cc_args + ["-D_POSIX_C_SOURCE=200112L"] if src.startswith("crfsuite/") else cc_args
38
cc_args = cc_args + ["-std=c99"] if src.endswith(".c") else cc_args
39
return _compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
40
0 commit comments