mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 14:56:41 +00:00 
			
		
		
		
	This has been done via CLion's "unused include directive", set to "detect completely unused".
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			461 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			23 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();
 | 
						|
    }
 | 
						|
 | 
						|
}
 |