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

@@ -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