http.cc   http.cc 
skipping to change at line 37 skipping to change at line 37
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
#include "mem_config.h" #include "libtest/yatlcon.h"
#include <libtest/common.h> #include <libtest/common.h>
#if defined(HAVE_CURL_CURL_H) && HAVE_CURL_CURL_H #if defined(HAVE_LIBCURL) && HAVE_LIBCURL
#include <curl/curl.h> #include <curl/curl.h>
#else #else
class CURL; class CURL;
#endif #endif
static void cleanup_curl(void) static void cleanup_curl(void)
{ {
#if defined(HAVE_CURL_CURL_H) && HAVE_CURL_CURL_H #if defined(HAVE_LIBCURL) && HAVE_LIBCURL
curl_global_cleanup(); curl_global_cleanup();
#endif #endif
} }
static void initialize_curl_startup() static void initialize_curl_startup()
{ {
#if defined(HAVE_CURL_CURL_H) && HAVE_CURL_CURL_H #if defined(HAVE_LIBCURL) && HAVE_LIBCURL
if (curl_global_init(CURL_GLOBAL_ALL)) if (curl_global_init(CURL_GLOBAL_ALL))
{ {
fatal_message("curl_global_init(CURL_GLOBAL_ALL) failed"); fatal_message("curl_global_init(CURL_GLOBAL_ALL) failed");
} }
#endif #endif
if (atexit(cleanup_curl)) if (atexit(cleanup_curl))
{ {
fatal_message("atexit() failed"); fatal_message("atexit() failed");
} }
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/