mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
VCMIDirs update #5 fix
- Updated old OS detect macros. - Fixed 1 misspell.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
#include "CVCMIServer.h"
|
||||
#include "../lib/StartInfo.h"
|
||||
#include "../lib/mapping/CMap.h"
|
||||
#ifndef __ANDROID__
|
||||
#ifndef VCMI_ANDROID
|
||||
#include "../lib/Interprocess.h"
|
||||
#endif
|
||||
#include "../lib/VCMI_Lib.h"
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
#include "../lib/UnlockGuard.h"
|
||||
|
||||
#if defined(__GNUC__) && !defined (__MINGW32__) && !defined(__ANDROID__)
|
||||
#if defined(__GNUC__) && !defined (__MINGW32__) && !defined(VCMI_ANDROID)
|
||||
#include <execinfo.h>
|
||||
#endif
|
||||
|
||||
@@ -41,7 +41,7 @@ std::string NAME = GameConstants::VCMI_VERSION + std::string(" (") + NAME_AFFIX
|
||||
using namespace boost;
|
||||
using namespace boost::asio;
|
||||
using namespace boost::asio::ip;
|
||||
#ifndef __ANDROID__
|
||||
#ifndef VCMI_ANDROID
|
||||
namespace intpr = boost::interprocess;
|
||||
#endif
|
||||
bool end2 = false;
|
||||
@@ -393,7 +393,7 @@ void CVCMIServer::newPregame()
|
||||
|
||||
void CVCMIServer::start()
|
||||
{
|
||||
#ifndef __ANDROID__
|
||||
#ifndef VCMI_ANDROID
|
||||
ServerReady *sr = nullptr;
|
||||
intpr::mapped_region *mr;
|
||||
try
|
||||
@@ -416,7 +416,7 @@ void CVCMIServer::start()
|
||||
logNetwork->infoStream()<<"Listening for connections at port " << acceptor->local_endpoint().port();
|
||||
auto s = new tcp::socket(acceptor->get_io_service());
|
||||
boost::thread acc(std::bind(vaccept,acceptor,s,&error));
|
||||
#ifndef __ANDROID__
|
||||
#ifndef VCMI_ANDROID
|
||||
sr->setToTrueAndNotify();
|
||||
delete mr;
|
||||
#endif
|
||||
@@ -560,7 +560,7 @@ static void handleCommandOptions(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(__GNUC__) && !defined (__MINGW32__) && !defined(__ANDROID__)
|
||||
#if defined(__GNUC__) && !defined (__MINGW32__) && !defined(VCMI_ANDROID)
|
||||
void handleLinuxSignal(int sig)
|
||||
{
|
||||
const int STACKTRACE_SIZE = 100;
|
||||
@@ -591,7 +591,7 @@ int main(int argc, char** argv)
|
||||
{
|
||||
// Installs a sig sev segmentation violation handler
|
||||
// to log stacktrace
|
||||
#if defined(__GNUC__) && !defined (__MINGW32__) && !defined(__ANDROID__)
|
||||
#if defined(__GNUC__) && !defined (__MINGW32__) && !defined(VCMI_ANDROID)
|
||||
signal(SIGSEGV, handleLinuxSignal);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user