diff options
author | Jens Verwiebe <info@jensverwiebe.de> | 2011-12-14 12:01:24 +0400 |
---|---|---|
committer | Jens Verwiebe <info@jensverwiebe.de> | 2011-12-14 12:01:24 +0400 |
commit | 6b652928a756a62356d96dc3a122b72530d77bb0 (patch) | |
tree | d7a9ae38e3ff81d544607e79908c2b1a667027fe /intern/audaspace | |
parent | 7d9a8c2308f2783062271eb99c18e8738b470d4d (diff) |
Cleanup for 42622 using struct stat instead boost
Diffstat (limited to 'intern/audaspace')
-rw-r--r-- | intern/audaspace/SConscript | 2 | ||||
-rw-r--r-- | intern/audaspace/intern/AUD_C-API.cpp | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/intern/audaspace/SConscript b/intern/audaspace/SConscript index 27556060fca..b8d5a56a625 100644 --- a/intern/audaspace/SConscript +++ b/intern/audaspace/SConscript @@ -25,8 +25,6 @@ if env['WITH_BF_JACK']: 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') diff --git a/intern/audaspace/intern/AUD_C-API.cpp b/intern/audaspace/intern/AUD_C-API.cpp index 2eab57765c7..c2a7677a400 100644 --- a/intern/audaspace/intern/AUD_C-API.cpp +++ b/intern/audaspace/intern/AUD_C-API.cpp @@ -78,9 +78,6 @@ #ifdef WITH_JACK #include "AUD_JackDevice.h" -#ifdef __APPLE__ -#include <boost/filesystem/operations.hpp> -#endif #endif @@ -141,8 +138,9 @@ int AUD_init(AUD_DeviceType device, AUD_DeviceSpecs specs, int buffersize) #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 |