Mercurial > octave-nkf
diff src/DLD-FUNCTIONS/urlwrite.cc @ 9905:84a7c11ff928
Correctly compile even when libcurl is not present according to configure
Missing ifdefs surrounding code dependent on libcurl prevented compilation
when the library was not present.
author | Rik <rdrider0-list@yahoo.com> |
---|---|
date | Wed, 02 Dec 2009 21:42:11 -0800 |
parents | dd3fc8ba4796 |
children | 57b41617c9fd |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/urlwrite.cc Wed Dec 02 20:34:01 2009 -0800 +++ b/src/DLD-FUNCTIONS/urlwrite.cc Wed Dec 02 21:42:11 2009 -0800 @@ -48,7 +48,7 @@ #include "oct-map.h" #include "unwind-prot.h" -#if defined (HAVE_CURL) +#ifdef HAVE_CURL #include <curl/curl.h> #include <curl/curlver.h> @@ -740,7 +740,7 @@ { octave_value_list retval; -#if defined (HAVE_CURL) +#ifdef HAVE_CURL int nargin = args.length (); @@ -900,7 +900,7 @@ // Octave's return value octave_value_list retval; -#if defined (HAVE_CURL) +#ifdef HAVE_CURL int nargin = args.length (); @@ -1423,6 +1423,7 @@ return octave_value (); } +#ifdef HAVE_CURL static string_vector mput_directory (const curl_handle& curl, const std::string& base, const std::string& dir) @@ -1509,6 +1510,7 @@ return retval; } +#endif DEFUN_DLD (__ftp_mput__, args, nargout, "-*- texinfo -*-\n\