From 1cf47e414ee2fbbc65c57e1d686cb788783d1773 Mon Sep 17 00:00:00 2001 From: kuepper Date: Mon, 20 Sep 2004 17:06:25 +0000 Subject: [PATCH] conditional compilation fixes --- eo/tutorial/Lesson2/FirstBitEA.cpp | 8 ++++++++ eo/tutorial/Lesson2/FirstRealEA.cpp | 8 ++++++++ eo/tutorial/Lesson2/exercise2.3.cpp | 8 ++++++++ eo/tutorial/Lesson3/SecondBitEA.cpp | 14 +++++++++++--- eo/tutorial/Lesson3/SecondRealEA.cpp | 11 ++++++++++- eo/tutorial/Lesson3/exercise3.1.cpp | 14 +++++++++++--- 6 files changed, 56 insertions(+), 7 deletions(-) diff --git a/eo/tutorial/Lesson2/FirstBitEA.cpp b/eo/tutorial/Lesson2/FirstBitEA.cpp index f5ca1afa6..928e60196 100644 --- a/eo/tutorial/Lesson2/FirstBitEA.cpp +++ b/eo/tutorial/Lesson2/FirstBitEA.cpp @@ -6,10 +6,18 @@ // (see FirstBitGA.cpp) but now with Breeder - and Combined Ops // //----------------------------------------------------------------------------- +#ifdef HAVE_CONFIG_H +#include +#endif + // standard includes #include // runtime_error #include // cout +#ifdef HAVE_SSTREAM +#include +#else #include // ostrstream, istrstream +#endif // the general include for eo #include diff --git a/eo/tutorial/Lesson2/FirstRealEA.cpp b/eo/tutorial/Lesson2/FirstRealEA.cpp index 1f9686f94..91793a1b1 100644 --- a/eo/tutorial/Lesson2/FirstRealEA.cpp +++ b/eo/tutorial/Lesson2/FirstRealEA.cpp @@ -6,10 +6,18 @@ // (see FirstBitGA.cpp) but now with Breeder - and Combined Ops // //----------------------------------------------------------------------------- +#ifdef HAVE_CONFIG_H +#include +#endif + // standard includes #include // runtime_error #include // cout +#ifdef HAVE_SSTREAM +#include +#else #include // ostrstream, istrstream +#endif // the general include for eo #include diff --git a/eo/tutorial/Lesson2/exercise2.3.cpp b/eo/tutorial/Lesson2/exercise2.3.cpp index e07dd768d..20867a0fc 100644 --- a/eo/tutorial/Lesson2/exercise2.3.cpp +++ b/eo/tutorial/Lesson2/exercise2.3.cpp @@ -6,10 +6,18 @@ // (see FirstBitGA.cpp) but now with Breeder - and Combined Ops // //----------------------------------------------------------------------------- +#ifdef HAVE_CONFIG_H +#include +#endif + // standard includes #include // runtime_error #include // cout +#ifdef HAVE_SSTREAM +#include +#else #include // ostrstream, istrstream +#endif // the general include for eo #include diff --git a/eo/tutorial/Lesson3/SecondBitEA.cpp b/eo/tutorial/Lesson3/SecondBitEA.cpp index 7a7bbb0c9..dfcf8e13f 100644 --- a/eo/tutorial/Lesson3/SecondBitEA.cpp +++ b/eo/tutorial/Lesson3/SecondBitEA.cpp @@ -6,11 +6,19 @@ // but now you learn to enter the parameters in a more flexible way // and to twidle the output to your preferences! //----------------------------------------------------------------------------- +#ifdef HAVE_CONFIG_H +#include +#endif + // standard includes -#include // runtime_error -#include // cout -#include // ostrstream, istrstream #include +#include // cout +#include // runtime_error +#ifdef HAVE_SSTREAM +#include +#else +#include // ostrstream, istrstream +#endif // the general include for eo #include diff --git a/eo/tutorial/Lesson3/SecondRealEA.cpp b/eo/tutorial/Lesson3/SecondRealEA.cpp index df2bed9a6..48d50b6ca 100644 --- a/eo/tutorial/Lesson3/SecondRealEA.cpp +++ b/eo/tutorial/Lesson3/SecondRealEA.cpp @@ -8,10 +8,19 @@ // and to twidle the output to your preferences (as in SecondBitEA.cpp) // //----------------------------------------------------------------------------- +#ifdef HAVE_CONFIG_H +#include +#endif + // standard includes -#include // runtime_error +#include #include // cout +#include // runtime_error +#ifdef HAVE_SSTREAM +#include +#else #include // ostrstream, istrstream +#endif // the general include for eo #include diff --git a/eo/tutorial/Lesson3/exercise3.1.cpp b/eo/tutorial/Lesson3/exercise3.1.cpp index cde1cc537..300005417 100644 --- a/eo/tutorial/Lesson3/exercise3.1.cpp +++ b/eo/tutorial/Lesson3/exercise3.1.cpp @@ -6,11 +6,19 @@ // but now you learn to enter the parameters in a more flexible way // and to twidle the output to your preferences! //----------------------------------------------------------------------------- +#ifdef HAVE_CONFIG_H +#include +#endif + // standard includes -#include // runtime_error -#include // cout -#include // ostrstream, istrstream #include +#include // cout +#include // runtime_error +#ifdef HAVE_SSTREAM +#include +#else +#include // ostrstream, istrstream +#endif // the general include for eo #include