Skip to content

Commit

Permalink
common: PR feedback, rename the definition to LLAMA_USE_CURL
Browse files Browse the repository at this point in the history
  • Loading branch information
phymbert committed Mar 16, 2024
1 parent a0ebdfc commit 42b25da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions common/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <unordered_set>
#include <vector>
#include <cinttypes>
#ifdef HAVE_CURL
#ifdef LLAMA_USE_CURL
#include <curl/curl.h>
#endif

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 42b25da

Please sign in to comment.