Merge pull request #301 from Pan7/openfiles

Increase the max open files to its maximum for msvc
This commit is contained in:
Timothee "TTimo" Besset 2015-09-27 10:38:35 -05:00
commit 97ee2b51bd

View file

@ -418,6 +418,10 @@ int main( int argc, char* argv[] ) {
const char *libgl; const char *libgl;
int i, j, k; 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: Rambetter on Sat Nov 13, 2010: