summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-08-24 19:54:06 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-08-24 19:54:06 (GMT)
commit6a3138293b6c0ad79bd06a4dac0c46df78d87745 (patch)
tree00d1deee76548477d9f175336bfdc91013c39b75 /Tests
parentd6aee2bc3654890fd6031572bf7dcadeb41c3fe2 (diff)
downloadCMake-6a3138293b6c0ad79bd06a4dac0c46df78d87745.zip
CMake-6a3138293b6c0ad79bd06a4dac0c46df78d87745.tar.gz
CMake-6a3138293b6c0ad79bd06a4dac0c46df78d87745.tar.bz2
BUG: fix complex test for old compilers
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Complex/Executable/complex.cxx2
-rw-r--r--Tests/Complex/cmTestConfigure.h.in6
-rw-r--r--Tests/ComplexOneConfig/Executable/complex.cxx2
-rw-r--r--Tests/ComplexOneConfig/cmTestConfigure.h.in6
-rw-r--r--Tests/ComplexRelativePaths/Executable/complex.cxx2
-rw-r--r--Tests/ComplexRelativePaths/cmTestConfigure.h.in6
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