[Scummvm-cvs-logs] SF.net SVN: scummvm:[42259] scummvm/trunk/sound/shorten.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Wed Jul 8 09:28:13 CEST 2009


Revision: 42259
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42259&view=rev
Author:   thebluegr
Date:     2009-07-08 07:28:13 +0000 (Wed, 08 Jul 2009)

Log Message:
-----------
Added guards to only include the Shorten audio code when the SAGA2 code in the SAGA engine is enabled

Modified Paths:
--------------
    scummvm/trunk/sound/shorten.cpp

Modified: scummvm/trunk/sound/shorten.cpp
===================================================================
--- scummvm/trunk/sound/shorten.cpp	2009-07-08 07:25:09 UTC (rev 42258)
+++ scummvm/trunk/sound/shorten.cpp	2009-07-08 07:28:13 UTC (rev 42259)
@@ -23,6 +23,14 @@
  *
  */
 
+// The code in this file is currently only used in SAGA2 (in the
+// SAGA engine), so if that engine isn't enabled, we will skip
+// compiling it. If you plan to use this code in another engine,
+// you will have to add the proper define check here.
+// Also please add the define check at the comment after the
+// matching #endif further down this file.
+#if defined(ENABLE_SAGA2)
+
 // Based on etree's Shorten tool, version 3.6.1
 // http://etree.org/shnutils/shorten/
 
@@ -526,3 +534,6 @@
 }
 
 } // End of namespace Audio
+
+#endif // defined(ENABLE_SAGA2)
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list