diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-05-17 15:44:26 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-05-17 15:44:26 (GMT) |
commit | 1094200ea060dad38eaffd6e06cb5852d556a559 (patch) | |
tree | e71322bfb8381d3b5217347b8e2a9130400a1eb8 /Source | |
parent | 4d86b681de366ab168823e113506428fa72b13d7 (diff) | |
download | CMake-1094200ea060dad38eaffd6e06cb5852d556a559.zip CMake-1094200ea060dad38eaffd6e06cb5852d556a559.tar.gz CMake-1094200ea060dad38eaffd6e06cb5852d556a559.tar.bz2 |
BUG: fix to compile on hp with aCC
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmCableWrapTclCommand.cxx | 2 | ||||
-rw-r--r-- | Source/cmConfigure.h.in | 4 | ||||
-rw-r--r-- | Source/cmGeneratedFileStream.h | 2 | ||||
-rw-r--r-- | Source/cmStandardIncludes.h | 2 |
4 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmCableWrapTclCommand.cxx b/Source/cmCableWrapTclCommand.cxx index 634e690..b7d5f4a 100644 --- a/Source/cmCableWrapTclCommand.cxx +++ b/Source/cmCableWrapTclCommand.cxx @@ -42,7 +42,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "cmCacheManager.h" #include "cmTarget.h" #include "cmGeneratedFileStream.h" -#include <strstream> + cmCableWrapTclCommand::cmCableWrapTclCommand(): m_CableClassSet(NULL) diff --git a/Source/cmConfigure.h.in b/Source/cmConfigure.h.in index bcdd682..0c38441 100644 --- a/Source/cmConfigure.h.in +++ b/Source/cmConfigure.h.in @@ -1,2 +1,2 @@ -#undef CMAKE_NO_STD_NAMESPACE
-#undef CMAKE_NO_ANSI_STREAM_HEADERS
+#undef CMAKE_NO_STD_NAMESPACE +#undef CMAKE_NO_ANSI_STREAM_HEADERS diff --git a/Source/cmGeneratedFileStream.h b/Source/cmGeneratedFileStream.h index 276a829..dca7488 100644 --- a/Source/cmGeneratedFileStream.h +++ b/Source/cmGeneratedFileStream.h @@ -80,7 +80,7 @@ public: /** * Allow a test for whether the file is open. */ - operator bool() { return m_Stream.is_open(); } + operator bool() { return static_cast<bool>(m_Stream); } /** * Close the file stream. This will cause the copy-if-different to the diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h index fa2afd2..9c84215 100644 --- a/Source/cmStandardIncludes.h +++ b/Source/cmStandardIncludes.h @@ -64,9 +64,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #ifndef CMAKE_NO_ANSI_STREAM_HEADERS #include <fstream> #include <iostream> +#include <strstream> #else #include <fstream.h> #include <iostream.h> +#include <strstream.h> #endif #include <vector> |