From: <at...@us...> - 2007-08-16 19:05:52
|
Revision: 472 http://cadcdev.svn.sourceforge.net/cadcdev/?rev=472&view=rev Author: atani Date: 2007-08-16 12:05:47 -0700 (Thu, 16 Aug 2007) Log Message: ----------- check for Apple modified version of OpenAL which takes a "const ALCchar *" for alcOpenDevice Modified Paths: -------------- tiki/osx/src/init_shutdown.cpp Modified: tiki/osx/src/init_shutdown.cpp =================================================================== --- tiki/osx/src/init_shutdown.cpp 2007-08-16 18:46:17 UTC (rev 471) +++ tiki/osx/src/init_shutdown.cpp 2007-08-16 19:05:47 UTC (rev 472) @@ -31,8 +31,8 @@ bool init( int argc, char **argv ) { ALCdevice * dev = NULL; ALCcontext *ctx = NULL; -#if ALC_MAJOR_VERSION == 0x1000 && ALC_MINOR_VERSION == 0x1001 - dev = alcOpenDevice( (ALCubyte *)( getenv( "OPENAL_DEVICE" ) ) ); // getenv()==NULL is okay. +#if defined(ALC_VERSION_0_1) + dev = alcOpenDevice( const_cast<ALCchar *>( getenv( "OPENAL_DEVICE" ) ) ); // getenv()==NULL is okay. #else dev = alcOpenDevice( getenv( "OPENAL_DEVICE" ) ); // getenv()==NULL is okay. #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |