mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Partial header inclusion cleanup.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
#include <algorithm>
|
||||
#include <assert.h>
|
||||
#include <new>
|
||||
#include <stdio.h>
|
||||
@@ -192,7 +191,7 @@ int Socket::RecvBuffered( void* buf, int len, int timeout )
|
||||
m_bufLeft = Recv( m_buf, BufSize, timeout );
|
||||
if( m_bufLeft <= 0 ) return m_bufLeft;
|
||||
|
||||
const auto sz = std::min( len, m_bufLeft );
|
||||
const auto sz = len < m_bufLeft ? len : m_bufLeft;
|
||||
memcpy( buf, m_buf, sz );
|
||||
m_bufPtr = m_buf + sz;
|
||||
m_bufLeft -= sz;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# ifndef _WINDOWS_
|
||||
extern "C" __declspec(dllimport) unsigned long __stdcall GetCurrentThreadId(void);
|
||||
# endif
|
||||
#else
|
||||
#elif defined __APPLE__ || ( !defined __ANDROID__ && !defined __linux__ )
|
||||
# include <pthread.h>
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user