cmake/Utilities/cmcurl/lib/curl_printf.h

56 lines
1.7 KiB
C
Raw Normal View History

2015-11-17 17:22:37 +01:00
#ifndef HEADER_CURL_PRINTF_H
#define HEADER_CURL_PRINTF_H
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
2023-07-02 19:51:09 +02:00
* 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
2021-09-14 00:13:48 +02:00
* 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.
*
2022-11-16 20:14:03 +01:00
* SPDX-License-Identifier: curl
*
***************************************************************************/
2015-11-17 17:22:37 +01:00
/*
* This header should be included by ALL code in libcurl that uses any
* *rintf() functions.
*/
#include <curl/mprintf.h>
2024-04-14 22:45:38 +02:00
#define MERR_OK 0
#define MERR_MEM 1
#define MERR_TOO_LARGE 2
2015-11-17 17:22:37 +01:00
# undef printf
# undef fprintf
2019-11-11 23:01:05 +01:00
# undef msnprintf
2015-11-17 17:22:37 +01:00
# undef vprintf
# undef vfprintf
# undef vsnprintf
2023-12-07 09:12:54 +01:00
# undef mvsnprintf
2015-11-17 17:22:37 +01:00
# undef aprintf
# undef vaprintf
# define printf curl_mprintf
# define fprintf curl_mfprintf
2019-11-11 23:01:05 +01:00
# define msnprintf curl_msnprintf
2015-11-17 17:22:37 +01:00
# define vprintf curl_mvprintf
# define vfprintf curl_mvfprintf
2019-11-11 23:01:05 +01:00
# define mvsnprintf curl_mvsnprintf
2015-11-17 17:22:37 +01:00
# define aprintf curl_maprintf
# define vaprintf curl_mvaprintf
#endif /* HEADER_CURL_PRINTF_H */