dhewm3-libs/i686-w64-mingw32/include/curl/mprintf.h
Daniel Gibson a374be9917 Update libCURL to 7.87.1
that's almost recent and fixes building Yamagi Quake II (which supports
using dhewm3-libs as YQUAKE2LIBS in its CMake build, esp. relevant
when building with MSVC).

This time it's build with Visual Studio 2019 instead of MinGW
(`nmake /f Makefile.vc mode=dll` in VS developer console); the curl
nmake files had to be adjusted a bit to output libcurl-4.dll instead of
libcurl.dll (I didn't want to change the DLL name in dhewm3 builds), and
libcurl-4.lib had to be manually renamed to libcurl.lib for the dhewm3
and YQ2 builds to still work.
You may have to delete and recreate your existing CMake build directories
if you used them with dhewm3-libs from before this commit.
I successfully tested this with dhewm3 with both MinGW (YQ2 buildenv)
and VS2019, 32bit (x86) and 64bit (x64), and Yamagi Quake II with
VS2019 x86+x64 - apparently MinGW is happy to use the MSVC .lib file
and doesn't require the .dll.a for linking.

Thanks to Yamagi for giving me the curl builds so I could integrate them!
2023-03-26 00:49:53 +01:00

52 lines
2.1 KiB
C

#ifndef CURLINC_MPRINTF_H
#define CURLINC_MPRINTF_H
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at https://curl.se/docs/copyright.html.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYING file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
* SPDX-License-Identifier: curl
*
***************************************************************************/
#include <stdarg.h>
#include <stdio.h> /* needed for FILE */
#include "curl.h" /* for CURL_EXTERN */
#ifdef __cplusplus
extern "C" {
#endif
CURL_EXTERN int curl_mprintf(const char *format, ...);
CURL_EXTERN int curl_mfprintf(FILE *fd, const char *format, ...);
CURL_EXTERN int curl_msprintf(char *buffer, const char *format, ...);
CURL_EXTERN int curl_msnprintf(char *buffer, size_t maxlength,
const char *format, ...);
CURL_EXTERN int curl_mvprintf(const char *format, va_list args);
CURL_EXTERN int curl_mvfprintf(FILE *fd, const char *format, va_list args);
CURL_EXTERN int curl_mvsprintf(char *buffer, const char *format, va_list args);
CURL_EXTERN int curl_mvsnprintf(char *buffer, size_t maxlength,
const char *format, va_list args);
CURL_EXTERN char *curl_maprintf(const char *format, ...);
CURL_EXTERN char *curl_mvaprintf(const char *format, va_list args);
#ifdef __cplusplus
} /* end of extern "C" */
#endif
#endif /* CURLINC_MPRINTF_H */