Hi -

Compiling using latest svn portmidi on windows (winxp, visual c++ 2008
express) fails like this:
c:\......\portmidi\pm_win\pmwin.c(48) : fatal error C1019: unexpected #else
Looking at the source code, the #else on line 48 is clearly one too
many. It's the first one here:

void pm_init(void)
{
#ifdef DEBUG
    printf("registered pm_term with cleanup DLL\n");
#endif
#else
    atexit(pm_exit);
#ifdef DEBUG
    printf("registered pm_exit with atexit()\n");
#endif
#endif
    pm_winmm_init();
    /* initialize other APIs (DirectX?) here */
}

I'm new to portmidi so I don't know for sure whether the first "endif"
should be removed (which would be  the quickest route to balancing),
or if  the "else" and one of the later "endif"s should bbe removed,
which looks like it might be more correct.

Any advice? Grateful for any suggestions.

Thanks
Dan
_______________________________________________
media_api mailing list
media_api@create.ucsb.edu
http://lists.create.ucsb.edu/mailman/listinfo/media_api

Reply via email to