00001 #ifndef HEADER_CURL_PRINTF_H 00002 #define HEADER_CURL_PRINTF_H 00003 /*************************************************************************** 00004 * _ _ ____ _ 00005 * Project ___| | | | _ \| | 00006 * / __| | | | |_) | | 00007 * | (__| |_| | _ <| |___ 00008 * \___|\___/|_| \_\_____| 00009 * 00010 * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. 00011 * 00012 * This software is licensed as described in the file COPYING, which 00013 * you should have received as part of this distribution. The terms 00014 * are also available at https://curl.haxx.se/docs/copyright.html. 00015 * 00016 * You may opt to use, copy, modify, merge, publish, distribute and/or sell 00017 * copies of the Software, and permit persons to whom the Software is 00018 * furnished to do so, under the terms of the COPYING file. 00019 * 00020 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 00021 * KIND, either express or implied. 00022 * 00023 ***************************************************************************/ 00024 00025 /* 00026 * This header should be included by ALL code in libcurl that uses any 00027 * *rintf() functions. 00028 */ 00029 00030 #include <curl/mprintf.h> 00031 00032 # undef printf 00033 # undef fprintf 00034 # undef snprintf 00035 # undef vprintf 00036 # undef vfprintf 00037 # undef vsnprintf 00038 # undef aprintf 00039 # undef vaprintf 00040 # define printf curl_mprintf 00041 # define fprintf curl_mfprintf 00042 # define snprintf curl_msnprintf 00043 # define vprintf curl_mvprintf 00044 # define vfprintf curl_mvfprintf 00045 # define vsnprintf curl_mvsnprintf 00046 # define aprintf curl_maprintf 00047 # define vaprintf curl_mvaprintf 00048 00049 /* We define away the sprintf functions unconditonally since we don't want 00050 internal code to be using them, intentionally or by mistake!*/ 00051 # undef sprintf 00052 # undef vsprintf 00053 # define sprintf sprintf_was_used 00054 # define vsprintf vsprintf_was_used 00055 00056 #endif /* HEADER_CURL_PRINTF_H */