~ubuntu-branches/ubuntu/trusty/psychtoolbox-3/trusty-proposed

« back to all changes in this revision

Viewing changes to Psychtoolbox/PsychOneliners/IsMinimumOSXVersion.m

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2013-11-19 23:34:50 UTC
  • mfrom: (3.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20131119233450-f7nf92vb8qavjmk8
Tags: 3.0.11.20131017.dfsg1-3
Upload to unsable since fresh glew has arrived to sid!

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
% History:
12
12
% 11/26/2007 Written (MK), based on code by Roger Woods (UCLA).
 
13
% 05/28/2012 Fixed this bullshit (MK).
13
14
 
14
15
if ~IsOSX
15
16
    rc = 0;
23
24
rc = 0;
24
25
 
25
26
if majorversion >= major
 
27
    if majorversion > major
 
28
        rc = 1;
 
29
        return;
 
30
    end
 
31
    
26
32
    gestaltbits=Gestalt('sys2');
27
33
    minorversion=bin2dec(char(49*gestaltbits+48*~gestaltbits));
28
34
    if minorversion >= minor
 
35
        if minorversion > minor
 
36
            rc = 1;
 
37
            return;
 
38
        end
 
39
 
29
40
        gestaltbits = Gestalt('sys3');
30
41
        pointversion=bin2dec(char(49*gestaltbits+48*~gestaltbits));
31
42
        if pointversion >= point