Decouple <cstddef>

This commit is contained in:
Martin Natano
2023-04-20 11:21:29 +02:00
parent 093675cdc3
commit 78fb2e9fc3
171 changed files with 2012 additions and 1786 deletions
+4 -2
View File
@@ -4,8 +4,10 @@
#include "RageTimer.h"
#include "RageThreads.h"
#include "RageUtil.h"
#include <sys/time.h>
#include <cstddef>
#include <errno.h>
#include <sys/time.h>
#if defined(UNIX)
#include "archutils/Unix/RunningUnderValgrind.h"
@@ -94,7 +96,7 @@ ThreadImpl *MakeThread( int (*pFunc)(void *pData), void *pData, uint64_t *piThre
// Copy the thread name.
const char *rawname = RageThread::GetThreadNameByID( *piThreadID );
const size_t maxNameLen = sizeof( thread->name );
const std::size_t maxNameLen = sizeof( thread->name );
if (strlen(rawname) < maxNameLen) {
// If it fits, I sits^H^H^H^Hcopy.
strncpy( thread->name, rawname, maxNameLen );