[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [42623] trunk/blender/intern/audaspace: Cleanup for 42622 using struct stat instead boost
jens verwiebe
info at jensverwiebe.de
Wed Dec 14 09:01:37 CET 2011
Revision: 42623
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42623
Author: jensverwiebe
Date: 2011-12-14 08:01:24 +0000 (Wed, 14 Dec 2011)
Log Message:
-----------
Cleanup for 42622 using struct stat instead boost
Modified Paths:
--------------
trunk/blender/intern/audaspace/SConscript
trunk/blender/intern/audaspace/intern/AUD_C-API.cpp
Modified: trunk/blender/intern/audaspace/SConscript
===================================================================
--- trunk/blender/intern/audaspace/SConscript 2011-12-14 06:15:52 UTC (rev 42622)
+++ trunk/blender/intern/audaspace/SConscript 2011-12-14 08:01:24 UTC (rev 42623)
@@ -25,8 +25,6 @@
sources += env.Glob('jack/*.cpp')
incs += ' jack ' + env['BF_JACK_INC']
defs.append('WITH_JACK')
- if env['OURPLATFORM'] == 'darwin':
- incs += ' ' + env['BF_BOOST_INC']
if env['WITH_BF_SNDFILE']:
sources += env.Glob('sndfile/*.cpp')
Modified: trunk/blender/intern/audaspace/intern/AUD_C-API.cpp
===================================================================
--- trunk/blender/intern/audaspace/intern/AUD_C-API.cpp 2011-12-14 06:15:52 UTC (rev 42622)
+++ trunk/blender/intern/audaspace/intern/AUD_C-API.cpp 2011-12-14 08:01:24 UTC (rev 42623)
@@ -78,10 +78,7 @@
#ifdef WITH_JACK
#include "AUD_JackDevice.h"
-#ifdef __APPLE__
-#include <boost/filesystem/operations.hpp>
#endif
-#endif
#ifdef WITH_FFMPEG
@@ -141,8 +138,9 @@
#ifdef WITH_JACK
case AUD_JACK_DEVICE:
#ifdef __APPLE__
- if (!boost::filesystem::exists("/Library/Frameworks/Jackmp.framework")){
- printf("Warning: Jack Framework not available\n");
+ struct stat st;
+ if(stat("/Library/Frameworks/Jackmp.framework",&st) != 0){
+ printf("Warning: Jack Framework not installed\n");
break;
} else {
#endif
More information about the Bf-blender-cvs
mailing list