summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2004-02-04 00:40:24 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2004-02-04 00:40:24 +0000
commit6ccb466d61d62cd86217ac5938dac124b30b9847 (patch)
tree6bb07e019df825a88a8f189d704f39f70cf0a67a
parent2004-02-03 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-6ccb466d61d62cd86217ac5938dac124b30b9847.tar.bz2
2004-02-03 Joel Sherrill <joel@OARcorp.com>
* include/buffer_test_io.h: Do not use iprintf() if in ANSI compiler mode.
-rw-r--r--testsuites/support/ChangeLog5
-rw-r--r--testsuites/support/include/buffer_test_io.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/testsuites/support/ChangeLog b/testsuites/support/ChangeLog
index 746a962328..c69b558ceb 100644
--- a/testsuites/support/ChangeLog
+++ b/testsuites/support/ChangeLog
@@ -1,3 +1,8 @@
+2004-02-03 Joel Sherrill <joel@OARcorp.com>
+
+ * include/buffer_test_io.h: Do not use iprintf() if in ANSI compiler
+ mode.
+
2004-01-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Add PREINSTALL_DIRS.
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 { \