Permalink
Browse files

Get rid of pragma warnings on Linux

  • Loading branch information...
1 parent 4ac0315 commit ef47219951a8955bca0963108e654319543ac351 @Mortal Mortal committed Nov 8, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −3 tpie/file_base.h
View
@@ -49,16 +49,20 @@ class file_base: public file_base_crtp<file_base> {
/// This is the type of our block buffers. We have one per file::stream
/// distributed over two linked lists.
///////////////////////////////////////////////////////////////////////////
-#pragma warning( push )
-#pragma warning( disable : 4200 )
+#ifdef WIN32
+#pragma warning( push )
+#pragma warning( disable : 4200 )
+#endif
struct block_t : public boost::intrusive::list_base_hook<> {
memory_size_type size;
memory_size_type usage;
stream_size_type number;
bool dirty;
char data[0];
};
-#pragma warning( pop )
+#ifdef WIN32
+#pragma warning( pop )
+#endif
inline void update_size(stream_size_type size) {
m_size = std::max(m_size, size);

0 comments on commit ef47219

Please sign in to comment.