Increase the max open files to its maximum for msvc

This commit is contained in:
Pan7 2015-09-26 22:47:39 +02:00
parent 424958f54b
commit ac95505d93

View file

@ -418,6 +418,10 @@ int main( int argc, char* argv[] ) {
const char *libgl;
int i, j, k;
#if defined( _WIN32 ) && defined( _MSC_VER )
//increase the max open files to its maximum for the C run-time of MSVC
_setmaxstdio( 2048 );
#endif
/*
Rambetter on Sat Nov 13, 2010: