Commit 05959814 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] add #ifdef _MSC_VER around setvbuf() call

parent bdda6081
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1997,7 +1997,9 @@ ivas_error RenderConfigReader_read(
    pTemp = (char *) calloc( file_size + 1, sizeof( char ) );
    acIdx = 0;
    roomAcHasFgCount = roomAcHasAcEnvCount = FALSE;
#ifdef _MSC_VER
    setvbuf( pRenderConfigReader->pConfigFile, pConfig_str, _IONBF, sizeof( char ) ); /* Work-around for VS bug that gives incorrect ftell for UNIX-style line endings */
#endif

    /* read file line by line */
    while ( fgets( pConfig_str, file_size, pRenderConfigReader->pConfigFile ) != NULL )