diff options
Diffstat (limited to '')
-rw-r--r-- | testsuites/samples/cdtest/Makefile.am | 6 | ||||
-rw-r--r-- | testsuites/samples/cdtest/main.cc | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/testsuites/samples/cdtest/Makefile.am b/testsuites/samples/cdtest/Makefile.am index fec4459bf8..30c597c720 100644 --- a/testsuites/samples/cdtest/Makefile.am +++ b/testsuites/samples/cdtest/Makefile.am @@ -29,18 +29,16 @@ include $(top_srcdir)/../automake/compile.am include $(top_srcdir)/../automake/leaf.am include $(top_srcdir)/sample.am +# AM_CPPFLAGS += -DRTEMS_TEST_IO_STREAM + # # (OPTIONAL) Add local stuff here using += # -if HAS_CXX ${PGM}: $(OBJS) $(LINK_FILES) $(make-cxx-exe) all-local: $(TMPINSTALL_FILES) -else -all-local: -endif EXTRA_DIST = $(C_FILES) $(CC_FILES) $(DOCS) diff --git a/testsuites/samples/cdtest/main.cc b/testsuites/samples/cdtest/main.cc index 25dd0e2a63..1705c214db 100644 --- a/testsuites/samples/cdtest/main.cc +++ b/testsuites/samples/cdtest/main.cc @@ -26,10 +26,12 @@ */ #include <rtems.h> -#include <stdio.h> -#include <stdlib.h> + +#include <cstdio> +#include <cstdlib> + #ifdef RTEMS_TEST_IO_STREAM -#include <iostream.h> +#include <iostream> #endif extern "C" @@ -144,7 +146,7 @@ cdtest(void) BClass bleak; #ifdef RTEMS_TEST_IO_STREAM - cout << "Testing a C++ I/O stream" << endl; + std::cout << "Testing a C++ I/O stream" << std::endl; #else printf("IO Stream not tested\n"); #endif |