diff --git a/Tools/bgen/bgen/scantools.py b/Tools/bgen/bgen/scantools.py index 0619475ee2b..7ce2878fd55 100644 --- a/Tools/bgen/bgen/scantools.py +++ b/Tools/bgen/bgen/scantools.py @@ -585,8 +585,8 @@ class Scanner_OSX(Scanner): """Scanner for modern (post UH3.3) Universal Headers """ def initpatterns(self): Scanner.initpatterns(self) - self.head_pat = "^EXTERN_API_C" - self.type_pat = "EXTERN_API_C" + \ + self.head_pat = "^EXTERN_API\(_C\)?" + self.type_pat = "EXTERN_API\(_C\)?" + \ "[ \t\n]*([ \t\n]*" + \ "\([a-zA-Z0-9_* \t]*[a-zA-Z0-9_*]\)" + \ "[ \t\n]*)[ \t\n]*"