Fixed OS X compilation error in window_cocoa.mm

Un-commented `NSApplicationActivationPolicyRegular` argument (in leu of zero) and got rid of problematic dereference
This commit is contained in:
Alexander Bohn / FI$H2k 2014-11-11 04:35:35 -08:00
parent 6550cb2a90
commit 8340e31f1f

View File

@ -150,7 +150,7 @@ CV_IMPL int cvInitSystem( int , char** )
#define NSAppKitVersionNumber10_5 949
#endif
if( floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_5 )
[application setActivationPolicy:0/*NSApplicationActivationPolicyRegular*/];
[application setActivationPolicy:NSApplicationActivationPolicyRegular];
#endif
//[application finishLaunching];
//atexit(icvCocoaCleanup);