diff options
author | thevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4> | 2008-06-10 14:18:37 +0000 |
---|---|---|
committer | thevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4> | 2008-06-10 14:18:37 +0000 |
commit | 6d7d71118b05dac6c40766a2d2334e7c1d5ad02b (patch) | |
tree | 267bc853602fb5e583e5a9afa53183de959907ce /tests | |
parent | bb13b553727db6a5874547c74a24b14f30658999 (diff) | |
download | mpfr-6d7d71118b05dac6c40766a2d2334e7c1d5ad02b.tar.gz |
Change #include <stdio.h> to #include <cstdio> when compiled with a C++ compiler.
Assume that mpfr_rnd_t and wchar_t arguments in a variadic functions are converted to 'int' by C++ compilers.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5389 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mpf_compat.h | 4 | ||||
-rw-r--r-- | tests/tsprintf.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/mpf_compat.h b/tests/mpf_compat.h index cccbb1941..d26bf5f62 100644 --- a/tests/mpf_compat.h +++ b/tests/mpf_compat.h @@ -20,7 +20,11 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ +#if defined (__cplusplus) +#include <cstdio> +#else #include <stdio.h> +#endif #include <stdlib.h> #include <string.h> diff --git a/tests/tsprintf.c b/tests/tsprintf.c index ea22110fd..60fc80ca1 100644 --- a/tests/tsprintf.c +++ b/tests/tsprintf.c @@ -22,7 +22,12 @@ MA 02110-1301, USA. */ #ifdef HAVE_STDARG #include <stdarg.h> +#if defined (__cplusplus) +#include <cstdio> +#else #include <stdio.h> +#endif + #include <stdlib.h> #include <string.h> |