1
0
forked from 0ad/0ad

Hopefully now working in gcc *and* MSVC

This was SVN commit r542.
This commit is contained in:
Ykkrosh 2004-06-18 19:14:42 +00:00
parent 32b6627645
commit d181ccf97e

View File

@ -56,14 +56,17 @@ static void Sound_dtor(Sound* s)
Handle sound_load(const char* filename)
{
#ifdef _WIN32
ONCE(
FSOUND_Init(44100, 32, 0);
#ifdef _WIN32
atexit2(FSOUND_Close, 0, CC_STDCALL_0);
#else
// atexit2(FSOUND_Close, 0, CC_CDECL_0); // PT: Doesn't compile
#endif
);
#else
ONCE(
FSOUND_Init(44100, 32, 0);
atexit2(FSOUND_Close, 0, CC_CDECL_0); // PT: Doesn't compile
);
#endif
return h_alloc(H_Sound,filename,0,0);
}