diff options
author | marc_culler <marc.culler@gmail.com> | 2020-12-11 05:55:13 (GMT) |
---|---|---|
committer | marc_culler <marc.culler@gmail.com> | 2020-12-11 05:55:13 (GMT) |
commit | 7d5165546e1f1cd69e5899902fe78af07524bac3 (patch) | |
tree | 6bb71d1b1a7776e639affdf3bbd982bc41fe97a7 /macosx/tkMacOSXFont.c | |
parent | dd9981cdf34805e32668ccc8856f95631c0e9940 (diff) | |
download | tk-7d5165546e1f1cd69e5899902fe78af07524bac3.zip tk-7d5165546e1f1cd69e5899902fe78af07524bac3.tar.gz tk-7d5165546e1f1cd69e5899902fe78af07524bac3.tar.bz2 |
Fix the build on macOS 10.6.
Diffstat (limited to 'macosx/tkMacOSXFont.c')
-rw-r--r-- | macosx/tkMacOSXFont.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/macosx/tkMacOSXFont.c b/macosx/tkMacOSXFont.c index 37d4eab..ca370f3 100644 --- a/macosx/tkMacOSXFont.c +++ b/macosx/tkMacOSXFont.c @@ -127,7 +127,7 @@ static int CreateNamedSystemFont(Tcl_Interp *interp, self = [self init]; if (self) { _string = [[NSString alloc] initWithString:aString]; - self.UTF8String = _string.UTF8String; + _UTF8String = _string.UTF8String; } return self; } @@ -149,10 +149,6 @@ static int CreateNamedSystemFont(Tcl_Interp *interp, return [_string characterAtIndex:index]; } -# ifndef __clang__ -@synthesize DString = _ds; -#endif - - (Tcl_DString)DString { if ( _ds.string == NULL) { @@ -177,6 +173,7 @@ static int CreateNamedSystemFont(Tcl_Interp *interp, #ifndef __clang__ @synthesize UTF8String = _UTF8String; +@synthesize DString = _ds; #endif @end |