diff options
author | Yang Tse <yangsita@gmail.com> | 2012-04-13 17:58:41 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-04-13 17:59:49 +0200 |
commit | 865893fb143540037ca34f6a4438ebe2e286ec5a (patch) | |
tree | 7e915522d0c9e6eafd0a4d30929dfa45c3695da3 /docs/examples/printf_macro.h | |
parent | a60edcc6d445e7e0517589cf5fda2682bd89e34e (diff) | |
download | curl-865893fb143540037ca34f6a4438ebe2e286ec5a.tar.gz |
examples: fix compiler warnings
Diffstat (limited to 'docs/examples/printf_macro.h')
-rw-r--r-- | docs/examples/printf_macro.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/docs/examples/printf_macro.h b/docs/examples/printf_macro.h deleted file mode 100644 index 9eed8f4c6..000000000 --- a/docs/examples/printf_macro.h +++ /dev/null @@ -1,45 +0,0 @@ -/*************************************************************************** - * _ _ ____ _ - * Project ___| | | | _ \| | - * / __| | | | |_) | | - * | (__| |_| | _ <| |___ - * \___|\___/|_| \_\_____| - * - * Copyright (C) 1998 - 2011, 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 http://curl.haxx.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. - * - ***************************************************************************/ -/* Simple hack trying to get a valid printf format string for size_t. - * If that fails for your platform you can define your own _FMT_SIZE_T, - * f.e.: -D_FMT_SIZE_T="zd" - */ -#ifndef _PRINTF_MACRO_H -#define _PRINTF_MACRO_H - -#ifndef _FMT_SIZE_T -#ifdef WIN32 -#define _FMT_SIZE_T "Id" -#else -/* -"zd" is a GNU extension to POSIX; so we dont use it for size_t but hack around -#define _FMT_SIZE_T "zd" -*/ -#ifdef __x86_64__ -#define _FMT_SIZE_T "lu" -#else -#define _FMT_SIZE_T "u" -#endif /* __x86_64__ */ -#endif /* WIN32 */ -#endif /* !_FMT_SIZE_T */ - -#endif /* !_PRINTF_MACRO_H */ |