Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Simplify logic for dylib extensions.
  • Loading branch information
freakboy3742 committed Mar 7, 2024
commit 5e0659efa061c2c794900d978568081e5a6e3937
10 changes: 3 additions & 7 deletions Python/dynload_shlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,9 @@ const char *_PyImport_DynLoadFiletab[] = {
#ifdef __CYGWIN__
".dll",
#else /* !__CYGWIN__ */
# ifdef __APPLE__
// TARGET_OS_IPHONE covers any non-macOS Apple platform.
# if TARGET_OS_IPHONE
# define SHLIB_SUFFIX ".dylib"
# else
# define SHLIB_SUFFIX ".so"
# endif
// TARGET_OS_IPHONE covers any non-macOS Apple platform.
# if defined(__APPLE__) && TARGET_OS_IPHONE
# define SHLIB_SUFFIX ".dylib"
# else
# define SHLIB_SUFFIX ".so"
# endif
Expand Down