Permalink
Browse files

Compare platform against ‘macos’ instead of ‘macosx’

#ignore
  • Loading branch information...
1 parent 2be989c commit fb271290491fda66730f5dd90abd5c3787fb7c5e @sorbits sorbits committed Dec 4, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 Support/Platform/generator.mm
@@ -42,7 +42,7 @@ static void visit (CXTranslationUnit tu, std::function<void(std::string const&,
int n = clang_getCursorPlatformAvailability(cursor, nullptr, nullptr, nullptr, nullptr, &availability[0], sizeof(availability) / sizeof(availability[0]));
for(int i = 0; i < n && !available; ++i)
{
- if(strcmp("macosx", clang_getCString(availability[i].Platform)) == 0)
+ if(strcmp("macos", clang_getCString(availability[i].Platform)) == 0)
available = &availability[i];
}

0 comments on commit fb27129

Please sign in to comment.