From 48896f81dd8f9cb23daf4921b991a24560cdb29e Mon Sep 17 00:00:00 2001 From: Henrique Santiago Date: Wed, 13 Apr 2011 22:10:25 -0300 Subject: [PATCH] undef ascii, protocol code commented, must swap lambda --- src/framework/net/protocol.cpp | 4 ++-- src/framework/prerequisites.h | 2 ++ src/framework/util/logger.cpp | 1 + src/framework/util/util.cpp | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/framework/net/protocol.cpp b/src/framework/net/protocol.cpp index dbf5aefe..bc1c3f94 100644 --- a/src/framework/net/protocol.cpp +++ b/src/framework/net/protocol.cpp @@ -27,11 +27,11 @@ Protocol::Protocol() { m_connection = g_connections.createConnection(); - m_connection->setErrorCallback( + /*m_connection->setErrorCallback( [this](const boost::system::error_code& error, const std::string& msg){ this->onError(error, msg); } - ); + );*/ } void Protocol::send(NetworkMessagePtr networkMessage, Connection::ConnectionCallback onSend) diff --git a/src/framework/prerequisites.h b/src/framework/prerequisites.h index f69fff0f..56599edd 100644 --- a/src/framework/prerequisites.h +++ b/src/framework/prerequisites.h @@ -39,6 +39,8 @@ typedef int32_t int32; typedef int16_t int16; typedef int8_t int8; +#undef __STRICT_ANSI__ + // C headers #include #include diff --git a/src/framework/util/logger.cpp b/src/framework/util/logger.cpp index 9a57a354..fa49b856 100644 --- a/src/framework/util/logger.cpp +++ b/src/framework/util/logger.cpp @@ -21,6 +21,7 @@ * THE SOFTWARE. */ +#undef __STRICT_ANSI__ #include "logger.h" #include "util.h" diff --git a/src/framework/util/util.cpp b/src/framework/util/util.cpp index 9f08f9fd..4ffdd038 100644 --- a/src/framework/util/util.cpp +++ b/src/framework/util/util.cpp @@ -21,6 +21,7 @@ * THE SOFTWARE. */ +#undef __STRICT_ANSI__ #include "util.h" #include