[passepartout] Fix compilation with gcc 4.2



commit 6caeb3c9e26f8f84f38015c895e38b7f9e671b33
Author: Sven Herzberg <herzi src gnome org>
Date:   Sun Sep 16 10:57:09 2007 +0000

    Fix compilation with gcc 4.2
    
    	GCC 4.2 does stricter c++ visibility handling. This patch fixes
    	http://bugzilla.gnome.org/show_bug.cgi?id=477017
    
    	Written by Gaudenz Steinlin <gaudenz soziologie ch>
    
    	* src/ps/misc.cc: follow stricter namespace handling for gcc 4.2
    
    git-svn-id: http://svn.gnome.org/svn/passepartout/trunk 1531 910bfebc-b532-0410-a802-fb3981afa09c
---
 src/ps/misc.cc |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/ps/misc.cc b/src/ps/misc.cc
index 6c542b3..87fadc4 100644
--- a/src/ps/misc.cc
+++ b/src/ps/misc.cc
@@ -3,6 +3,8 @@
 ///
 #include "misc.h"
 
-std::ostream& PS::operator << (std::ostream& out, const PS::Concat& c) {
-  return out << '[' << c.matrix << "] concat\n";
+namespace PS {
+  std::ostream& operator << (std::ostream& out, const Concat& c) {
+    return out << '[' << c.matrix << "] concat\n";
+  }
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]