Add correct library names for macOS
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user