[PATCH] Vorbis x64 with MS V.Studio 2005+ compile fix
Hello!
Vorbis library does not compile out of box under MS Studio 2005+ for x64 platform, failing on vorbis_ftoi. Generic fix for this issue is to wrap win32 platform to avoid compiler error as following:
in: os.h
static __inline int vorbis_ftoi(double f){ #ifdef _M_IX86 int i; __asm{ fld f fistp i } return i; #else return (int)(f+.5); #endif }
Best regards, Dmitry Kostjuchenko.