BUG: fix small compile issues on HP aCC
This commit is contained in:
parent
f63e4a144c
commit
7155d1f68b
@ -54,6 +54,7 @@
|
|||||||
|
|
||||||
#ifdef CMAKE_NO_STD_NAMESPACE
|
#ifdef CMAKE_NO_STD_NAMESPACE
|
||||||
#define std
|
#define std
|
||||||
|
# define for if (false) { } else for
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -43,9 +43,9 @@ bool cmSystemTools::s_ErrorOccured = false;
|
|||||||
void cmSystemTools::GetPath(std::vector<std::string>& path)
|
void cmSystemTools::GetPath(std::vector<std::string>& path)
|
||||||
{
|
{
|
||||||
#if defined(_WIN32) && !defined(__CYGWIN__)
|
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||||
char* pathSep = ";";
|
const char* pathSep = ";";
|
||||||
#else
|
#else
|
||||||
char* pathSep = ":";
|
const char* pathSep = ":";
|
||||||
#endif
|
#endif
|
||||||
std::string pathEnv = getenv("PATH");
|
std::string pathEnv = getenv("PATH");
|
||||||
std::string::size_type start =0;
|
std::string::size_type start =0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user