On Viernes, Abril 3, 2009, David Henningsson wrote: > Pedro Lopez-Cabanillas skrev: > > BTW, the patch for fast MIDI file rendering by David Henningsson also > > fails under MS compilers. > > If you tell me what's wrong, I'll be happy to fix it. I don't use MSVC > myself. > > // David
Here is the output from the compiler for "fluid_synth.c": ..\..\src\fluid_synth.c(357) : error C2143: syntax error : missing ';' before 'type' ..\..\src\fluid_synth.c(358) : error C2143: syntax error : missing ';' before 'type' ..\..\src\fluid_synth.c(359) : error C2065: 'cont' : undeclared identifier ..\..\src\fluid_synth.c(365) : error C2143: syntax error : missing '{' before '*' ..\..\src\fluid_synth.c(366) : error C2371: 'new_fluid_sample_timer' : redefinition; different basic types ..\..\src\fluid_synth.h(213) : see declaration of 'new_fluid_sample_timer' ..\..\src\fluid_synth.c(378) : warning C4133: 'return' : incompatible types - from 'fluid_sample_timer_t *' to 'int *' The problem is that GCC is C99 compliant, but MSVC is not. It has only some extensions on top of ANSI C. And your patch follows the C99 dialect. BTW, you can download the compiler from MS without cost http://www.microsoft.com/express/vc/ Regards, Pedro _______________________________________________ fluid-dev mailing list fluid-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/fluid-dev