Various fixes to get openmw to compile and run properly

This commit is contained in:
Nicolay Korslund 2010-07-02 10:41:39 +02:00
parent 0de4bb9d6c
commit 4a3f6b0ff1
7 changed files with 24 additions and 14 deletions

View file

@ -1,6 +1,8 @@
#ifndef COMMANDSERVER_COMMAND_HPP
#define COMMANDSERVER_COMMAND_HPP
#include <boost/function.hpp>
namespace OMW
{
///
@ -16,4 +18,4 @@ namespace OMW
};
}
#endif COMMANDSERVER_COMMAND_HPP
#endif //COMMANDSERVER_COMMAND_HPP

View file

@ -3,6 +3,8 @@
using boost::asio::ip::tcp;
#include <libs/mangle/tools/str_exception.hpp>
//
// Namespace for containing implementation details that the
// rest of OpenMW doesn't need to worry about
@ -103,7 +105,7 @@ namespace OMW { namespace CommandServer { namespace Detail {
bDone = true;
}
else
throw std::exception("Unexpected header!");
throw str_exception("Unexpected header!");
}
else
bDone = true;
@ -119,8 +121,8 @@ namespace OMW { namespace CommandServer {
Server::Server (Deque* pCommandQueue, const int port)
: mAcceptor (mIOService, tcp::endpoint(tcp::v4(), port))
, mpCommandQueue (pCommandQueue)
, mbStopping (false)
, mpCommandQueue (pCommandQueue)
{
}