mirror of
https://github.com/defold/extension-websocket.git
synced 2025-06-27 09:47:44 +02:00
compile fixes
This commit is contained in:
parent
832a156395
commit
8e32fa3c76
@ -15,6 +15,11 @@
|
||||
#include <emscripten/emscripten.h> // for EM_ASM
|
||||
#endif
|
||||
|
||||
#if defined(WIN32)
|
||||
#include <malloc.h>
|
||||
#define alloca _alloca
|
||||
#endif
|
||||
|
||||
namespace dmWebsocket {
|
||||
|
||||
int g_DebugWebSocket = 0;
|
||||
@ -514,7 +519,7 @@ static dmExtension::Result OnUpdate(dmExtension::Params* params)
|
||||
|
||||
if (dmSocket::RESULT_OK == sr)
|
||||
{
|
||||
PushMessage(conn, conn->m_Buffer, recv_bytes);
|
||||
PushMessage(conn, recv_bytes);
|
||||
conn->m_BufferSize += recv_bytes;
|
||||
conn->m_Buffer[conn->m_BufferCapacity-1] = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user