1e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET#ifndef HEADER_CURL_PRINTF_H 2e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET#define HEADER_CURL_PRINTF_H 35ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen/*************************************************************************** 45ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen * _ _ ____ _ 55ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen * Project ___| | | | _ \| | 65ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen * / __| | | | |_) | | 75ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen * | (__| |_| | _ <| |___ 85ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen * \___|\___/|_| \_\_____| 95ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen * 10e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. 115ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen * 125ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen * This software is licensed as described in the file COPYING, which 135ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen * you should have received as part of this distribution. The terms 14d15eaac64ca1a7244824d660ea84e8815a23d058Alex Deymo * are also available at https://curl.haxx.se/docs/copyright.html. 155ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen * 165ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen * You may opt to use, copy, modify, merge, publish, distribute and/or sell 175ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen * copies of the Software, and permit persons to whom the Software is 185ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen * furnished to do so, under the terms of the COPYING file. 195ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen * 205ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 215ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen * KIND, either express or implied. 225ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen * 235ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen ***************************************************************************/ 245ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen 25e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET/* 26e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET * This header should be included by ALL code in libcurl that uses any 27e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET * *rintf() functions. 28e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET */ 295ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen 305ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen#include <curl/mprintf.h> 315ab5018bf8f0e39957d264f33c3eeddd958ed5d8Kristian Monsen 32e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET# undef printf 33e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET# undef fprintf 34e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET# undef snprintf 35e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET# undef vprintf 36e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET# undef vfprintf 37e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET# undef vsnprintf 38e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET# undef aprintf 39e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET# undef vaprintf 40e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET# define printf curl_mprintf 41e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET# define fprintf curl_mfprintf 42e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET# define snprintf curl_msnprintf 43e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET# define vprintf curl_mvprintf 44e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET# define vfprintf curl_mvfprintf 45e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET# define vsnprintf curl_mvsnprintf 46e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET# define aprintf curl_maprintf 47e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET# define vaprintf curl_mvaprintf 48e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET 49e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET/* We define away the sprintf functions unconditonally since we don't want 50e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET internal code to be using them, intentionally or by mistake!*/ 51e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET# undef sprintf 52e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET# undef vsprintf 53e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET# define sprintf sprintf_was_used 54e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET# define vsprintf vsprintf_was_used 55e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET 56e6cd738ed3716c02557fb3a47515244e949ade39Bertrand SIMONNET#endif /* HEADER_CURL_PRINTF_H */ 57