From 6ffa9a57b7acb47ff55467d90d57ad1bee9adb81 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 4 Feb 2004 00:39:47 +0000 Subject: [PATCH] 2004-02-03 Joel Sherrill * include/buffer_test_io.h: Do not use iprintf() if in ANSI compiler mode. --- c/src/tests/support/ChangeLog | 5 +++++ c/src/tests/support/include/buffer_test_io.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/c/src/tests/support/ChangeLog b/c/src/tests/support/ChangeLog index 1b7d469fc2..f781cdb104 100644 --- a/c/src/tests/support/ChangeLog +++ b/c/src/tests/support/ChangeLog @@ -1,3 +1,8 @@ +2004-02-03 Joel Sherrill + + * include/buffer_test_io.h: Do not use iprintf() if in ANSI compiler + mode. + 2003-12-16 Joel Sherrill PR 544/tests diff --git a/c/src/tests/support/include/buffer_test_io.h b/c/src/tests/support/include/buffer_test_io.h index 4fd016df6f..29c5946acc 100644 --- a/c/src/tests/support/include/buffer_test_io.h +++ b/c/src/tests/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 { \