undef ascii, protocol code commented, must swap lambda

master
Henrique Santiago 13 years ago
parent 92ac4093a4
commit 48896f81dd

@ -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)

@ -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>

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

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

Loading…
Cancel
Save