From a234f9d642a03c91bebc73cbbe6d2f7b975ca2e2 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 6 Dec 2015 00:37:39 +0000 Subject: Fix visibility in Slicer parser --- slicer/slicer/parser.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/slicer/slicer/parser.h b/slicer/slicer/parser.h index 9322bbd..744ffa7 100644 --- a/slicer/slicer/parser.h +++ b/slicer/slicer/parser.h @@ -20,15 +20,16 @@ namespace Slicer { typedef std::vector Conversions; typedef std::vector Args; -#pragma GCC visibility push(default) Slicer(FILE * c); static unsigned int Apply(const boost::filesystem::path & ice, const boost::filesystem::path & cpp); static unsigned int Apply(const boost::filesystem::path & ice, FILE *); static unsigned int Apply(const boost::filesystem::path & ice, const boost::filesystem::path & cpp, const Args &); static unsigned int Apply(const boost::filesystem::path & ice, FILE *, const Args &); -#pragma GCC visibility pop + unsigned int Components() const; + +#pragma GCC visibility push(hidden) virtual bool visitUnitStart(const Slice::UnitPtr&) override; virtual void visitUnitEnd(const Slice::UnitPtr&) override; @@ -47,8 +48,6 @@ namespace Slicer { virtual void visitModuleEnd(const Slice::ModulePtr & m) override; - unsigned int Components() const; - private: void createNewModelPartPtrFor(const Slice::TypePtr & type) const; @@ -60,6 +59,7 @@ namespace Slicer { void copyMetadata(const std::list & metadata) const; static Conversions getAllConversions(Slice::DataMemberPtr dm); static Conversions getConversions(const std::list & metadata); +#pragma GCC visibility pop unsigned int components; FILE * cpp; -- cgit v1.2.3