From 7155d1f68b5823d7b5eacdfbbb75eeca347bbfc1 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 16 Apr 2001 15:40:40 -0400 Subject: [PATCH] BUG: fix small compile issues on HP aCC --- Source/cmStandardIncludes.h | 1 + Source/cmSystemTools.cxx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h index 4664f46319..1b13cbd79d 100644 --- a/Source/cmStandardIncludes.h +++ b/Source/cmStandardIncludes.h @@ -54,6 +54,7 @@ #ifdef CMAKE_NO_STD_NAMESPACE #define std +# define for if (false) { } else for #endif diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 957ee460a5..0087ca05d4 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -43,9 +43,9 @@ bool cmSystemTools::s_ErrorOccured = false; void cmSystemTools::GetPath(std::vector& path) { #if defined(_WIN32) && !defined(__CYGWIN__) - char* pathSep = ";"; + const char* pathSep = ";"; #else - char* pathSep = ":"; + const char* pathSep = ":"; #endif std::string pathEnv = getenv("PATH"); std::string::size_type start =0;