common: PR feedback, rename the definition to LLAMA_USE_CURL
This commit is contained in:
parent
a0ebdfcc5d
commit
42b25dacab
2 changed files with 3 additions and 3 deletions
|
@ -50,7 +50,7 @@ endif()
|
|||
# Check for curl
|
||||
find_package(CURL QUIET)
|
||||
if (CURL_FOUND)
|
||||
add_definitions(-DHAVE_CURL)
|
||||
add_definitions(-DLLAMA_USE_CURL)
|
||||
include_directories(${CURL_INCLUDE_DIRS})
|
||||
link_libraries(${CURL_LIBRARIES})
|
||||
else()
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include <unordered_set>
|
||||
#include <vector>
|
||||
#include <cinttypes>
|
||||
#ifdef HAVE_CURL
|
||||
#ifdef LLAMA_USE_CURL
|
||||
#include <curl/curl.h>
|
||||
#endif
|
||||
|
||||
|
@ -1387,7 +1387,7 @@ void llama_batch_add(
|
|||
batch.n_tokens++;
|
||||
}
|
||||
|
||||
#ifdef HAVE_CURL
|
||||
#ifdef LLAMA_USE_CURL
|
||||
struct llama_model * llama_load_model_from_url(const char * model_url, const char * path_model,
|
||||
struct llama_model_params params) {
|
||||
// Initialize libcurl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue