build: fix cocoa configure check on OS X 10.7

It failed because the 10.7 SDK doesn't natively support array and dictionary
subscripting.
This commit is contained in:
Stefano Pigozzi
2014-01-02 20:34:14 +01:00
parent 52fa38079d
commit fb2d418327
3 changed files with 15 additions and 6 deletions

View File

@@ -498,11 +498,7 @@ video_output_features = [
{
'name': '--cocoa',
'desc': 'Cocoa',
'func': check_cc(
fragment=load_fragment('cocoa.m'),
compile_filename='test.m',
framework_name=['Cocoa', 'IOKit', 'OpenGL'],
linkflags='-fobjc-arc')
'func': check_cocoa
} , {
'name': 'gdi',
'desc': 'GDI',