Add correct library names for macOS

This commit is contained in:
Cacodemon345
2021-08-26 14:27:52 +06:00
parent 766f321d4d
commit 426df48151
5 changed files with 14 additions and 1 deletions

View File

@@ -248,6 +248,8 @@ net_pcap_prepare(netdev_t *list)
/* Try loading the DLL. */
#ifdef _WIN32
pcap_handle = dynld_module("wpcap.dll", pcap_imports);
#elif defined __APPLE__
pcap_handle = dynld_module("libpcap.dylib", pcap_imports);
#else
pcap_handle = dynld_module("libpcap.so", pcap_imports);
#endif

View File

@@ -269,6 +269,8 @@ main(int argc, char **argv)
/* Try loading the DLL. */
#ifdef _WIN32
pcap_handle = dynld_module("wpcap.dll", pcap_imports);
#elif defined __APPLE__
pcap_handle = dynld_module("libpcap.dylib", pcap_imports);
#else
pcap_handle = dynld_module("libpcap.so", pcap_imports);
#endif

View File

@@ -61,6 +61,8 @@
#ifdef _WIN32
# define PATH_PNG_DLL "libpng16-16.dll"
#elif defined __APPLE__
# define PATH_PNG_DLL "libpng16.dylib"
#else
# define PATH_PNG_DLL "libpng16.so"
#endif

View File

@@ -43,8 +43,13 @@
#define GS_ARG_ENCODING_UTF8 1
#define gs_error_Quit -101
#ifdef _WIN32
#define PATH_GHOSTSCRIPT_DLL "gsdll32.dll"
#define PATH_GHOSTSCRIPT_SO "libgs.so"
#elif defined __APPLE__
#define PATH_GHOSTSCRIPT_DLL "libgs.dylib"
#else
#define PATH_GHOSTSCRIPT_DLL "libgs.so"
#endif
#define POSTSCRIPT_BUFFER_LENGTH 65536

View File

@@ -225,6 +225,8 @@ void* fluidsynth_init(const device_t *info)
/* Try loading the DLL. */
#ifdef _WIN32
fluidsynth_handle = dynld_module("libfluidsynth.dll", fluidsynth_imports);
#elif defined __APPLE__
fluidsynth_handle = dynld_module("libfluidsynth.dylib", fluidsynth_imports);
#else
fluidsynth_handle = dynld_module("libfluidsynth.so", fluidsynth_imports);
#endif