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
|
#include <emscripten/emscripten.h> // for EM_ASM
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(WIN32)
|
||||||
|
#include <malloc.h>
|
||||||
|
#define alloca _alloca
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace dmWebsocket {
|
namespace dmWebsocket {
|
||||||
|
|
||||||
int g_DebugWebSocket = 0;
|
int g_DebugWebSocket = 0;
|
||||||
@ -514,7 +519,7 @@ static dmExtension::Result OnUpdate(dmExtension::Params* params)
|
|||||||
|
|
||||||
if (dmSocket::RESULT_OK == sr)
|
if (dmSocket::RESULT_OK == sr)
|
||||||
{
|
{
|
||||||
PushMessage(conn, conn->m_Buffer, recv_bytes);
|
PushMessage(conn, recv_bytes);
|
||||||
conn->m_BufferSize += recv_bytes;
|
conn->m_BufferSize += recv_bytes;
|
||||||
conn->m_Buffer[conn->m_BufferCapacity-1] = 0;
|
conn->m_Buffer[conn->m_BufferCapacity-1] = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user