# HG changeset patch # User Vytautas JanĨauskas # Date 1379339204 -10800 # Node ID abde714a4f889c364460ac767060f732ee6b3bde # Parent 11a1e8e41835f37f14aa4a30f13f86e16e17efba let audiodevinfo be built even when PortAudio is not present * audiodevinfo.cc: added conditional compilation constructs that prevent parts of it from being compiled when PortAudio is not present diff -r 11a1e8e41835 -r abde714a4f88 libinterp/dldfcn/audiodevinfo.cc --- a/libinterp/dldfcn/audiodevinfo.cc Mon Sep 16 16:38:51 2013 +0300 +++ b/libinterp/dldfcn/audiodevinfo.cc Mon Sep 16 16:46:44 2013 +0300 @@ -68,8 +68,9 @@ @end deftypefn" ) { + octave_value retval; +#ifdef HAVE_PORTAUDIO int nargin = args.length(); - octave_value retval; PaError err; octave_scalar_map devinfo; octave_value_list input; @@ -361,6 +362,9 @@ error ("audiodevinfo: wrong number of arguments"); return retval; } +#else + error ("portaudio not found on your system and thus audio functionality is not present"); +#endif return retval; }