summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/gras/element.hpp9
-rw-r--r--include/gras/sbuffer.hpp9
-rw-r--r--include/gras/thread_pool.hpp9
3 files changed, 27 insertions, 0 deletions
diff --git a/include/gras/element.hpp b/include/gras/element.hpp
index e6da881..2b236ce 100644
--- a/include/gras/element.hpp
+++ b/include/gras/element.hpp
@@ -3,6 +3,11 @@
#ifndef INCLUDED_GRAS_ELEMENT_HPP
#define INCLUDED_GRAS_ELEMENT_HPP
+#ifdef _MSC_VER
+#pragma warning(push)
+#pragma warning (disable:4251) // needs to have dll interface
+#endif //_MSC_VER
+
#include <gras/gras.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/enable_shared_from_this.hpp>
@@ -63,4 +68,8 @@ struct GRAS_API Element : ElementBase, boost::enable_shared_from_this<Element>
} //namespace gras
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif //_MSC_VER
+
#endif /*INCLUDED_GRAS_ELEMENT_HPP*/
diff --git a/include/gras/sbuffer.hpp b/include/gras/sbuffer.hpp
index 2d63e50..7980c30 100644
--- a/include/gras/sbuffer.hpp
+++ b/include/gras/sbuffer.hpp
@@ -3,6 +3,11 @@
#ifndef INCLUDED_GRAS_SBUFFER_HPP
#define INCLUDED_GRAS_SBUFFER_HPP
+#ifdef _MSC_VER
+#pragma warning(push)
+#pragma warning (disable:4251) // needs to have dll interface
+#endif //_MSC_VER
+
#include <gras/gras.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
@@ -136,4 +141,8 @@ struct GRAS_API SBuffer : boost::intrusive_ptr<SBufferImpl>
#include <gras/detail/sbuffer.hpp>
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif //_MSC_VER
+
#endif /*INCLUDED_GRAS_SBUFFER_HPP*/
diff --git a/include/gras/thread_pool.hpp b/include/gras/thread_pool.hpp
index 57bfb48..dd623d3 100644
--- a/include/gras/thread_pool.hpp
+++ b/include/gras/thread_pool.hpp
@@ -3,6 +3,11 @@
#ifndef INCLUDED_GRAS_THREAD_POOL_HPP
#define INCLUDED_GRAS_THREAD_POOL_HPP
+#ifdef _MSC_VER
+#pragma warning(push)
+#pragma warning (disable:4251) // needs to have dll interface
+#endif //_MSC_VER
+
#include <gras/gras.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
@@ -75,4 +80,8 @@ struct GRAS_API ThreadPool : boost::shared_ptr<Theron::Framework>
} //namespace gras
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif //_MSC_VER
+
#endif /*INCLUDED_GRAS_THREAD_POOL_HPP*/