Skip to content

Commit a0cac80

Browse files
authored
Merge pull request #3 from NexaAI/paul/fix_windows_build
Fix windows build
2 parents fd87a2e + 5b5b6b4 commit a0cac80

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/llama-impl.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22

33
#include "ggml.h" // for ggml_log_level
4+
#include "llama.h" // for LLAMA_API
45

56
#include <string>
67
#include <vector>
@@ -20,8 +21,8 @@
2021
//
2122

2223
LLAMA_ATTRIBUTE_FORMAT(2, 3)
23-
void llama_log_internal (ggml_log_level level, const char * format, ...);
24-
void llama_log_callback_default(ggml_log_level level, const char * text, void * user_data);
24+
LLAMA_API void llama_log_internal (ggml_log_level level, const char * format, ...);
25+
LLAMA_API void llama_log_callback_default(ggml_log_level level, const char * text, void * user_data);
2526

2627
#define LLAMA_LOG(...) llama_log_internal(GGML_LOG_LEVEL_NONE , __VA_ARGS__)
2728
#define LLAMA_LOG_INFO(...) llama_log_internal(GGML_LOG_LEVEL_INFO , __VA_ARGS__)

0 commit comments

Comments
 (0)