mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
c7a3f43915
This has been done via CLion's "unused include directive", set to "detect completely unused".
24 lines
461 B
C++
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();
|
|
}
|
|
|
|
}
|