From c0ec0d82d3c7206d3d2cda7cf93514f22f8ac504 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Tue, 28 Apr 2009 05:04:11 +0000 Subject: 2009-04-28 Chris Johns * fileio/init.c, fileio/system.h, iostream/init.cc, loopback/init.c, pppd/init.c, pppd/pppdapp.c: Do not build if BSP_SMALL_MEMORY is defined. Remove this code once a better way is supported by the build system. --- testsuites/samples/iostream/init.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'testsuites/samples/iostream') diff --git a/testsuites/samples/iostream/init.cc b/testsuites/samples/iostream/init.cc index 8616ff2f7c..26fb7b754b 100644 --- a/testsuites/samples/iostream/init.cc +++ b/testsuites/samples/iostream/init.cc @@ -23,15 +23,25 @@ #define CONFIGURE_INIT #include "system.h" +#if BSP_SMALL_MEMORY +#include +#else #include +#endif + #include rtems_task Init( rtems_task_argument ignored ) { +#if BSP_SMALL_MEMORY + printf ("NO STDC++. MEMORY TOO SMALL"); +#else std::cout << "\n\n*** HELLO WORLD TEST ***" << std::endl; std::cout << "Hello World" << std::endl; std::cout << "*** END OF HELLO WORLD TEST ***" << std::endl; +#endif exit( 0 ); } + -- cgit v1.2.3