1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00
OpenMW/components/platform/platform.cpp
jvoisin c7a3f43915 Minor header cleanup
This has been done via CLion's "unused include directive",
set to "detect completely unused".
2023-04-30 16:26:03 +02:00

24 lines
461 B
C++

#include "platform.hpp"
namespace Platform
{
static void increaseFileHandleLimit()
{
#ifdef WIN32
#include <stdio.h>
// Increase limit for open files at the stream I/O level, see
// https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/setmaxstdio?view=msvc-170#remarks
_setmaxstdio(8192);
#else
// No-op on any other platform.
#endif
}
void init()
{
increaseFileHandleLimit();
}
}