Fixed most tab and min/max issues from trunk inspection report

[SVN r53141]
This commit is contained in:
Jeremiah Willcock
2009-05-20 19:19:00 +00:00
parent 95861ad943
commit a3eeee5ace
4 changed files with 4 additions and 11 deletions

View File

@@ -744,4 +744,4 @@ struct has_trivial_destructor_after_move
} //namespace interprocess {
} //namespace boost {
#endif //#ifndef BOOST_INTERPROCESS_MOVE_HPP
#endif //#ifndef BOOST_INTERPROCESS_MOVE_HPP

View File

@@ -36,7 +36,7 @@
# define BOOST_INTERPROCESS_POSIX_PROCESS_SHARED
# endif
#endif
#if ((_POSIX_BARRIERS - 0) > 0)
# define BOOST_INTERPROCESS_POSIX_BARRIERS
# endif

View File

@@ -247,12 +247,9 @@ inline mapped_region::mapped_region
error_info err(winapi::get_last_error());
throw interprocess_exception(err);
}
#ifdef max
#undef max
#endif
if(static_cast<unsigned __int64>(total_size) >
std::numeric_limits<std::size_t>::max()){
(std::numeric_limits<std::size_t>::max)()){
error_info err(size_error);
throw interprocess_exception(err);
}

View File

@@ -23,10 +23,6 @@
#include <string>
#include "get_process_id_name.hpp"
#ifdef max
#undef max
#endif
////////////////////////////////////////////////////////////////////////////////
// //
// This example tests the process shared message queue. //
@@ -60,7 +56,7 @@ bool test_priority_order()
mq1.send(&tstamp, sizeof(tstamp), (unsigned int)(i%10));
}
unsigned int priority_prev = std::numeric_limits<unsigned int>::max();
unsigned int priority_prev = (std::numeric_limits<unsigned int>::max)();
std::size_t tstamp_prev = 0;
//Receive all messages and test those are ordered