Skip to content

Commit

Permalink
talipot-core/PluginLibraryLoader: Fix compilation on macOS 14
Browse files Browse the repository at this point in the history
  • Loading branch information
anlambert committed Nov 27, 2024
1 parent 039e3d9 commit 95cd955
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/talipot-core/src/PluginLibraryLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ bool PluginLibraryLoader::initPluginDir(PluginLoader *loader, bool recursive,
struct dirent **namelist;
int n = scandir(_pluginPath.c_str(), &namelist,
#if !(defined(__APPLE__) || defined(__FreeBSD__)) || \
(defined(__APPLE__) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080)
(defined(__APPLE__) && (__MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 || defined(__arm64__)))
reinterpret_cast<int (*)(const dirent *)>(__talipot_select_libs),
#else
__talipot_select_libs,
Expand Down Expand Up @@ -420,7 +420,7 @@ bool PluginLibraryLoader::initPluginDir(PluginLoader *loader, bool recursive,

n = scandir(_pluginPath.c_str(), &namelist,
#if !(defined(__APPLE__) || defined(__FreeBSD__)) || \
(defined(__APPLE__) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080)
(defined(__APPLE__) && (__MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 || defined(__arm64__)))
reinterpret_cast<int (*)(const dirent *)>(__talipot_select_dirs),
#else
__talipot_select_dirs,
Expand Down

0 comments on commit 95cd955

Please sign in to comment.