summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXFont.c
diff options
context:
space:
mode:
authormarc_culler <marc.culler@gmail.com>2020-12-11 05:55:13 (GMT)
committermarc_culler <marc.culler@gmail.com>2020-12-11 05:55:13 (GMT)
commit7d5165546e1f1cd69e5899902fe78af07524bac3 (patch)
tree6bb71d1b1a7776e639affdf3bbd982bc41fe97a7 /macosx/tkMacOSXFont.c
parentdd9981cdf34805e32668ccc8856f95631c0e9940 (diff)
downloadtk-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.c7
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