mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 17:47:12 -04:00
macOS: Don't hardcode libcurl.dylib lookup to /usr/lib directory
This commit is contained in:
parent
508020ac78
commit
6a70c40b26
@ -246,8 +246,8 @@ static const char* (APIENTRY *_curl_easy_strerror)(CURLcode res);
|
|||||||
static const cc_string curlLib = String_FromConst("libcurl.dll");
|
static const cc_string curlLib = String_FromConst("libcurl.dll");
|
||||||
static const cc_string curlAlt = String_FromConst("curl.dll");
|
static const cc_string curlAlt = String_FromConst("curl.dll");
|
||||||
#elif defined CC_BUILD_DARWIN
|
#elif defined CC_BUILD_DARWIN
|
||||||
static const cc_string curlLib = String_FromConst("/usr/lib/libcurl.4.dylib");
|
static const cc_string curlLib = String_FromConst("libcurl.4.dylib");
|
||||||
static const cc_string curlAlt = String_FromConst("/usr/lib/libcurl.dylib");
|
static const cc_string curlAlt = String_FromConst("libcurl.dylib");
|
||||||
#elif defined CC_BUILD_NETBSD
|
#elif defined CC_BUILD_NETBSD
|
||||||
static const cc_string curlLib = String_FromConst("libcurl.so");
|
static const cc_string curlLib = String_FromConst("libcurl.so");
|
||||||
static const cc_string curlAlt = String_FromConst("/usr/pkg/lib/libcurl.so");
|
static const cc_string curlAlt = String_FromConst("/usr/pkg/lib/libcurl.so");
|
||||||
|
@ -77,8 +77,8 @@ static int RunProgram(int argc, char** argv) {
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
/* NOTE: Make sure to comment this out before pushing a commit */
|
/* NOTE: Make sure to comment this out before pushing a commit */
|
||||||
//cc_string rawArgs = String_FromConst("UnknownShadow200 fffff 127.0.0.1 25565");
|
//cc_string rawArgs = String_FromConst("UnknownShadow200 fffff 127.0.0.1 25565");
|
||||||
cc_string rawArgs = String_FromConst("UnknownShadow200");
|
//cc_string rawArgs = String_FromConst("UnknownShadow200");
|
||||||
argsCount = String_UNSAFE_Split(&rawArgs, ' ', args, 4);
|
//argsCount = String_UNSAFE_Split(&rawArgs, ' ', args, 4);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (argsCount == 0) {
|
if (argsCount == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user