From 6ccb466d61d62cd86217ac5938dac124b30b9847 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 4 Feb 2004 00:40:24 +0000 Subject: 2004-02-03 Joel Sherrill * include/buffer_test_io.h: Do not use iprintf() if in ANSI compiler mode. --- testsuites/support/include/buffer_test_io.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'testsuites/support/include/buffer_test_io.h') diff --git a/testsuites/support/include/buffer_test_io.h b/testsuites/support/include/buffer_test_io.h index 4fd016df6f..29c5946acc 100644 --- a/testsuites/support/include/buffer_test_io.h +++ b/testsuites/support/include/buffer_test_io.h @@ -22,11 +22,14 @@ extern "C" { #if !defined(TESTS_BUFFER_OUTPUT) +/* do not use iprintf if strict ansi mode */ +#ifndef __STRICT_ANSI__ #undef printf #define printf(...) \ do { \ iprintf( __VA_ARGS__); \ } while (0) +#endif #define rtems_test_exit(_s) \ do { \ -- cgit v1.2.3