llama.cpp : fix wrong vsnprintf call in MS compiler (#2856)

Co-authored-by: grahameth <->
This commit is contained in:
grahameth 2023-08-28 17:38:12 +02:00 committed by GitHub
parent 3af6b86301
commit be475f60af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6257,10 +6257,6 @@ void llama_log_set(llama_log_callback log_callback, void * user_data) {
g_state.log_callback_user_data = user_data; g_state.log_callback_user_data = user_data;
} }
#if defined(_MSC_VER) && !defined(vsnprintf)
#define vsnprintf _vsnprintf
#endif
static void llama_log_internal_v(llama_log_level level, const char * format, va_list args) { static void llama_log_internal_v(llama_log_level level, const char * format, va_list args) {
va_list args_copy; va_list args_copy;
va_copy(args_copy, args); va_copy(args_copy, args);