Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…mpiled code fails to run on older macos. Remove unneeded include (since it's already in tkMacOSXPrivate.h)
  • Loading branch information
jan.nijtmans committed Jun 8, 2023
1 parent 274946b commit a3eb1ed
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions macosx/tkMacOSXFileTypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ without generating deprecation warnings.

#include "tkMacOSXPrivate.h"
#include "tkMacOSXFileTypes.h"
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 110000
#import <UniformTypeIdentifiers/UniformTypeIdentifiers.h>
#endif

#define CHARS_TO_OSTYPE(string) (OSType) string[0] << 24 | \
(OSType) string[1] << 16 | \
Expand Down
2 changes: 1 addition & 1 deletion unix/configure
Original file line number Diff line number Diff line change
Expand Up @@ -9333,7 +9333,7 @@ _ACEOF
LIBS="$LIBS -framework Cocoa -framework Carbon -framework IOKit -framework QuartzCore"
if test -d "/System/Library/Frameworks/UniformTypeIdentifiers.framework"; then
LIBS="$LIBS -framework UniformTypeIdentifiers"
LIBS="$LIBS -weak_framework UniformTypeIdentifiers"
fi
EXTRA_CC_SWITCHES='-std=gnu99 -x objective-c'
TK_WINDOWINGSYSTEM=AQUA
Expand Down
2 changes: 1 addition & 1 deletion unix/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ if test $tk_aqua = yes; then
AC_DEFINE(MAC_OSX_TK, 1, [Are we building TkAqua?])
LIBS="$LIBS -framework Cocoa -framework Carbon -framework IOKit -framework QuartzCore"
if test -d "/System/Library/Frameworks/UniformTypeIdentifiers.framework"; then
LIBS="$LIBS -framework UniformTypeIdentifiers"
LIBS="$LIBS -weak_framework UniformTypeIdentifiers"
fi
EXTRA_CC_SWITCHES='-std=gnu99 -x objective-c'
TK_WINDOWINGSYSTEM=AQUA
Expand Down

0 comments on commit a3eb1ed

Please sign in to comment.