Revision: 510
http://cadcdev.svn.sourceforge.net/cadcdev/?rev=510&view=rev
Author: atani
Date: 2007-09-10 10:03:45 -0700 (Mon, 10 Sep 2007)
Log Message:
-----------
allow compilation against newer/older OpenAL libs
Modified Paths:
--------------
tiki/sdl/src/init_shutdown.cpp
Modified: tiki/sdl/src/init_shutdown.cpp
===================================================================
--- tiki/sdl/src/init_shutdown.cpp 2007-09-05 07:29:05 UTC (rev 509)
+++ tiki/sdl/src/init_shutdown.cpp 2007-09-10 17:03:45 UTC (rev 510)
@@ -27,7 +27,11 @@
return false;
}
- dev = alcOpenDevice( "sdl" );
+#ifdef ALCchar
+ dev = alcOpenDevice( const_cast<ALCchar *>("sdl") );
+#else
+ dev = alcOpenDevice( (ALCubyte *)("sdl") );
+#endif
if ( dev == NULL ) {
fprintf( stderr, "Unable to initialize OpenAL: %s\n", alGetString( alGetError() ) );
} else {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|