From 6a3138293b6c0ad79bd06a4dac0c46df78d87745 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 24 Aug 2001 15:54:06 -0400 Subject: BUG: fix complex test for old compilers --- Tests/Complex/Executable/complex.cxx | 2 +- Tests/Complex/cmTestConfigure.h.in | 6 +++--- Tests/ComplexOneConfig/Executable/complex.cxx | 2 +- Tests/ComplexOneConfig/cmTestConfigure.h.in | 6 +++--- Tests/ComplexRelativePaths/Executable/complex.cxx | 2 +- Tests/ComplexRelativePaths/cmTestConfigure.h.in | 6 +++--- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Tests/Complex/Executable/complex.cxx b/Tests/Complex/Executable/complex.cxx index 9af88ad..8202cee 100644 --- a/Tests/Complex/Executable/complex.cxx +++ b/Tests/Complex/Executable/complex.cxx @@ -19,7 +19,7 @@ void Passed(const char* Message, const char* m2="") passed++; } -main() +int main() { if(sharedFunction() != 1) { diff --git a/Tests/Complex/cmTestConfigure.h.in b/Tests/Complex/cmTestConfigure.h.in index 563463d..a7bffb7 100644 --- a/Tests/Complex/cmTestConfigure.h.in +++ b/Tests/Complex/cmTestConfigure.h.in @@ -3,7 +3,7 @@ #define STRING_VAR "${STRING_VAR}" -#undef CMAKE_NO_STD_NAMESPACE -#undef CMAKE_NO_ANSI_STREAM_HEADERS -#undef CMAKE_NO_ANSI_FOR_SCOPE +#cmakedefine CMAKE_NO_STD_NAMESPACE +#cmakedefine CMAKE_NO_ANSI_STREAM_HEADERS +#cmakedefine CMAKE_NO_ANSI_FOR_SCOPE diff --git a/Tests/ComplexOneConfig/Executable/complex.cxx b/Tests/ComplexOneConfig/Executable/complex.cxx index 9af88ad..8202cee 100644 --- a/Tests/ComplexOneConfig/Executable/complex.cxx +++ b/Tests/ComplexOneConfig/Executable/complex.cxx @@ -19,7 +19,7 @@ void Passed(const char* Message, const char* m2="") passed++; } -main() +int main() { if(sharedFunction() != 1) { diff --git a/Tests/ComplexOneConfig/cmTestConfigure.h.in b/Tests/ComplexOneConfig/cmTestConfigure.h.in index 563463d..a7bffb7 100644 --- a/Tests/ComplexOneConfig/cmTestConfigure.h.in +++ b/Tests/ComplexOneConfig/cmTestConfigure.h.in @@ -3,7 +3,7 @@ #define STRING_VAR "${STRING_VAR}" -#undef CMAKE_NO_STD_NAMESPACE -#undef CMAKE_NO_ANSI_STREAM_HEADERS -#undef CMAKE_NO_ANSI_FOR_SCOPE +#cmakedefine CMAKE_NO_STD_NAMESPACE +#cmakedefine CMAKE_NO_ANSI_STREAM_HEADERS +#cmakedefine CMAKE_NO_ANSI_FOR_SCOPE diff --git a/Tests/ComplexRelativePaths/Executable/complex.cxx b/Tests/ComplexRelativePaths/Executable/complex.cxx index 9af88ad..8202cee 100644 --- a/Tests/ComplexRelativePaths/Executable/complex.cxx +++ b/Tests/ComplexRelativePaths/Executable/complex.cxx @@ -19,7 +19,7 @@ void Passed(const char* Message, const char* m2="") passed++; } -main() +int main() { if(sharedFunction() != 1) { diff --git a/Tests/ComplexRelativePaths/cmTestConfigure.h.in b/Tests/ComplexRelativePaths/cmTestConfigure.h.in index 563463d..a7bffb7 100644 --- a/Tests/ComplexRelativePaths/cmTestConfigure.h.in +++ b/Tests/ComplexRelativePaths/cmTestConfigure.h.in @@ -3,7 +3,7 @@ #define STRING_VAR "${STRING_VAR}" -#undef CMAKE_NO_STD_NAMESPACE -#undef CMAKE_NO_ANSI_STREAM_HEADERS -#undef CMAKE_NO_ANSI_FOR_SCOPE +#cmakedefine CMAKE_NO_STD_NAMESPACE +#cmakedefine CMAKE_NO_ANSI_STREAM_HEADERS +#cmakedefine CMAKE_NO_ANSI_FOR_SCOPE -- cgit v0.12