Browse Source

BUG: fix to compile on hp with aCC

Bill Hoffman 24 years ago
parent
commit
1094200ea0

+ 1 - 1
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)

+ 2 - 2
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

+ 1 - 1
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

+ 2 - 0
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>