summaryrefslogtreecommitdiffstats
path: root/Tests/ComplexRelativePaths
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/ComplexRelativePaths
parentd6aee2bc3654890fd6031572bf7dcadeb41c3fe2 (diff)
downloadCMake-6a3138293b6c0ad79bd06a4dac0c46df78d87745.zip
CMake-6a3138293b6c0ad79bd06a4dac0c46df78d87745.tar.gz
CMake-6a3138293b6c0ad79bd06a4dac0c46df78d87745.tar.bz2
BUG: fix complex test for old compilers
Diffstat (limited to 'Tests/ComplexRelativePaths')
-rw-r--r--Tests/ComplexRelativePaths/Executable/complex.cxx2
-rw-r--r--Tests/ComplexRelativePaths/cmTestConfigure.h.in6
2 files changed, 4 insertions, 4 deletions
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