Commit b947c556 authored by Mark Florisson's avatar Mark Florisson

Generate Lion fix only for outer parallel sections

parent 92812a61
......@@ -7736,6 +7736,7 @@ class ParallelStatNode(StatNode, ParallelNode):
"""
A bug on OS X Lion disallows __builtin_expect macros. This code avoids them
"""
if not self.parent:
code.putln("#if %s" % self.redef_condition)
code.putln(" #undef likely")
code.putln(" #undef unlikely")
......@@ -7744,6 +7745,7 @@ class ParallelStatNode(StatNode, ParallelNode):
code.putln("#endif")
def redef_builtin_expect_apple_gcc_bug(self, code):
if not self.parent:
code.putln("#if %s" % self.redef_condition)
code.putln(" #undef likely")
code.putln(" #undef unlikely")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment