From 26dbc7e9208fcc91530d94ad8389953e147d7e6e Mon Sep 17 00:00:00 2001 From: stephanie sappho lenzo Date: Tue, 5 Dec 2023 13:21:07 -0500 Subject: more windows compile fixes --- extension/curlmanager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extension/curlmanager.cpp b/extension/curlmanager.cpp index 973d133..6a64c10 100644 --- a/extension/curlmanager.cpp +++ b/extension/curlmanager.cpp @@ -19,13 +19,15 @@ struct data_t { size_t nmemb; size_t return_value; }; - +#include /* Write Function */ static size_t curl_write_function_default(void *ptr, size_t bytes, size_t nmemb, void *stream) { FILE *file = (FILE *)stream; #ifdef WIN32 - if(file->_file >= 3) + //if(file->_file >= 3) + + if ( _filelength(_fileno(file)) >= 3 ) #else if(file->_fileno >= 3) #endif -- cgit v1.2.3