undef ascii, protocol code commented, must swap lambda

This commit is contained in:
Henrique Santiago 2011-04-13 22:10:25 -03:00
parent 92ac4093a4
commit 48896f81dd
4 changed files with 6 additions and 2 deletions

View File

@ -27,11 +27,11 @@
Protocol::Protocol() Protocol::Protocol()
{ {
m_connection = g_connections.createConnection(); m_connection = g_connections.createConnection();
m_connection->setErrorCallback( /*m_connection->setErrorCallback(
[this](const boost::system::error_code& error, const std::string& msg){ [this](const boost::system::error_code& error, const std::string& msg){
this->onError(error, msg); this->onError(error, msg);
} }
); );*/
} }
void Protocol::send(NetworkMessagePtr networkMessage, Connection::ConnectionCallback onSend) void Protocol::send(NetworkMessagePtr networkMessage, Connection::ConnectionCallback onSend)

View File

@ -39,6 +39,8 @@ typedef int32_t int32;
typedef int16_t int16; typedef int16_t int16;
typedef int8_t int8; typedef int8_t int8;
#undef __STRICT_ANSI__
// C headers // C headers
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>

View File

@ -21,6 +21,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#undef __STRICT_ANSI__
#include "logger.h" #include "logger.h"
#include "util.h" #include "util.h"

View File

@ -21,6 +21,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#undef __STRICT_ANSI__
#include "util.h" #include "util.h"
#include <cstdio> #include <cstdio>