summaryrefslogtreecommitdiff
path: root/include/gras
diff options
context:
space:
mode:
authorJosh Blum2013-03-18 00:36:11 -0700
committerJosh Blum2013-03-18 00:36:11 -0700
commit3a30faed097c252f82978f0d7a908d853f5d9d43 (patch)
tree636c3600de31ef207dc42886c418528a3e3738b6 /include/gras
parentd941ecb925c1397681f9ec6b354176fdd45fa8e1 (diff)
downloadsandhi-3a30faed097c252f82978f0d7a908d853f5d9d43.tar.gz
sandhi-3a30faed097c252f82978f0d7a908d853f5d9d43.tar.bz2
sandhi-3a30faed097c252f82978f0d7a908d853f5d9d43.zip
gras: added pragmas for msvc warnings
Diffstat (limited to 'include/gras')
-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*/