]> git.lyx.org Git - lyx.git/blobdiff - src/support/DebugStream.h
Small things in my tree.
[lyx.git] / src / support / DebugStream.h
index 9e87488a087a0ecd212e983ca9e97997f093edb4..b19c4b812b060953a02ee2f3bbdb6e81c52f8340 100644 (file)
@@ -82,7 +82,15 @@ struct Debug {
     debug[Debug::type(Debug::INFO | Debug::CRIT)] << "...info/crit...\n";
 
 */
+
+// This workaround is needed only for gcc 2.8.1 (and possibly egcs
+// 1.0.x), which generates a compiler error when subclassing from
+// std::. (JMarc)
+#ifdef CXX_WORKING_NAMESPACES
 class DebugStream : public std::ostream {
+#else
+class DebugStream : public ostream {
+#endif
 public:
        /// Constructor, sets the debug level to t.
        explicit DebugStream(Debug::type t = Debug::NONE);