Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


On Fri, Dec 24, 2010 at 01:41:56PM +0000, Caolán McNamara <caolanm@redhat.com> wrote:
Try now again, there was one cppunit header included outside those
guard. I've moved it inside the guards now. Does that now work ?

No, I get the same output. However, using the attached patch everything
is OK.

So looks like classes used by external C++ libraries need those guards
as well.

OK to push or you have a more elegant idea? :)
From af96261cd472e9bb0a496d76ff29e12d6e28a7cd Mon Sep 17 00:00:00 2001
From: Miklos Vajna <vmiklos@frugalware.org>
Date: Sat, 25 Dec 2010 13:40:04 +0100
Subject: [PATCH] guard CppUnit::assertion_traits struct

---
 starmath/qa/cppunit/test_nodetotextvisitors.cxx |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/starmath/qa/cppunit/test_nodetotextvisitors.cxx 
b/starmath/qa/cppunit/test_nodetotextvisitors.cxx
index 9fa5ec0..07f6c89 100644
--- a/starmath/qa/cppunit/test_nodetotextvisitors.cxx
+++ b/starmath/qa/cppunit/test_nodetotextvisitors.cxx
@@ -57,6 +57,7 @@
 #include <visitors.hxx>
 #include <cursor.hxx>
 
+#include "preextstl.h"
 namespace CppUnit {
 template<>
 struct assertion_traits<String>
@@ -75,6 +76,7 @@ struct assertion_traits<String>
     }
 };
 }
+#include "postextstl.h"
 
 SO2_DECL_REF(SmDocShell)
 SO2_IMPL_REF(SmDocShell)
-- 
1.7.3.4

Attachment: pgpVmThIeXDUU.pgp
Description: PGP signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.