Trying to get things to compile with newer versions of boost.

This commit is contained in:
Ulrich Germann 2015-08-10 15:40:04 +01:00
parent 1dcd077806
commit 64af8123c1
4 changed files with 12 additions and 2 deletions

View File

@ -1,7 +1,7 @@
// -*- mode: c++; indent-tabs-mode: nil; tab-width: -*-
#include "CloseSession.h"
#include "TranslationRequest.h"
#include "Server.h"
#include "moses/StaticData.h"
namespace MosesServer
{

View File

@ -1,10 +1,14 @@
// -*- mode: c++; indent-tabs-mode: nil; tab-width: -*-
#pragma once
#include "moses/parameters/ServerOptions.h"
#include "Session.h"
#include <xmlrpc-c/base.hpp>
#include <xmlrpc-c/registry.hpp>
#include <xmlrpc-c/server_abyss.hpp>
#ifndef WITH_THREADS
#pragma message("COMPILING WITHOUT THREADS!")
#else
#include "moses/ThreadPool.h"
#endif
namespace MosesServer
{

View File

@ -1,6 +1,11 @@
// -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*-
#pragma once
#ifdef HAVE_XMLRPC_C
#include "moses/TypeDef.h"
#ifdef WITH_THREADS
#include <boost/thread.hpp>
#include "moses/ThreadPool.h"
#endif
#include <xmlrpc-c/base.hpp>
#include <xmlrpc-c/registry.hpp>
#include <xmlrpc-c/server_abyss.hpp>

View File

@ -1,7 +1,6 @@
// -*- c++ -*-
#pragma once
#include "moses/ThreadPool.h"
#include "moses/parameters/ServerOptions.h"
#include "Session.h"
#include <xmlrpc-c/base.hpp>
@ -9,6 +8,8 @@
#include <xmlrpc-c/server_abyss.hpp>
#ifndef WITH_THREADS
#pragma message("COMPILING WITHOUT THREADS!")
#else
#include "moses/ThreadPool.h"
#endif
namespace MosesServer
{