Updating tk +quartz failed on Snow Leopard

Chris Jones jonesc at hep.phy.cam.ac.uk
Thu Aug 25 01:09:04 PDT 2016



On 25/08/16 04:30, Kevin Walzer wrote:
> On 8/24/16 5:26 AM, Mojca Miklavec wrote:
>>
>> According to
>>
>> http://stackoverflow.com/questions/307128/how-do-i-cast-id-to-a-float
>> I guess that
>>      scalefactor = ([[win backingScaleFactor] floatValue] == 2.0) ? 2
>> : 1;
>> instead of
>>      scalefactor = ([win backingScaleFactor] == 2.0) ? 2 : 1;
>> should wok.
>>
>> That compiles on 10.6 at least (I didn't check the actual
>> functionality, I don't even have GUI access to that 10.6 VM).
>>
> Unfortunately, this patch breaks the build on 10.11. clang complains
> with this error:
>
> /Users/kevin/tcl-tk-fossil/tk/unix/../macosx/tkMacOSXXStubs.c:901:18:
> error:
>       bad receiver type 'CGFloat' (aka 'double')
>
> Any suggestions here? Given a choice between supporting an obsoleted
> version of the OS and the current one, my choice is for the current one.

Why don't you only apply the patch when needed, i.e. when building on 
OSX 10.6, but skip it elsewhere ?

>
> --Kevin
>


More information about the macports-users mailing list