Ticket #35562: conditionally-name-variable.diff

File conditionally-name-variable.diff, 584 bytes (added by gjasny@…, 12 years ago)

Conditionally use structure variable

  • CDLCVersionMinimum.m

    old new  
    77
    88#import "CDMachOFile.h"
    99
     10#include <Availability.h>
     11
    1012@implementation CDLCVersionMinimum
    1113
    1214- (id)initWithDataCursor:(CDMachOFileDataCursor *)cursor;
     
    1517        versionMinCommand.cmd = [cursor readInt32];
    1618        versionMinCommand.cmdsize = [cursor readInt32];
    1719        versionMinCommand.version = [cursor readInt32];
     20#ifdef __MAC_10_8
     21        versionMinCommand.sdk = [cursor readInt32];
     22#else
    1823        versionMinCommand.reserved = [cursor readInt32];
     24#endif
    1925    }
    2026
    2127    return self;