From 0f6562ef51df7a9370bb966448263cc21bead7a9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 30 Dec 2017 05:41:59 +0100 Subject: Fix compile error for non windows build --- src/curl.cpp | 4 ++-- tests/src/confTest/confTest.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/curl.cpp b/src/curl.cpp index a3c5e28..d14a036 100644 --- a/src/curl.cpp +++ b/src/curl.cpp @@ -66,7 +66,7 @@ namespace sibs curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, writeToFile); curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, true); curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "SIBS"); - curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, FALSE); + curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, false); #if OS_FAMILY == OS_FAMILY_POSIX FILE *file = fopen(filepath, "wb"); #else @@ -142,7 +142,7 @@ namespace sibs curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, writeToString); curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, true); curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "SIBS"); - curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, FALSE); + curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, false); curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, &result.str); printf("Downloading from url: %s\n", url); diff --git a/tests/src/confTest/confTest.cpp b/tests/src/confTest/confTest.cpp index 38b4971..eaf5c0b 100644 --- a/tests/src/confTest/confTest.cpp +++ b/tests/src/confTest/confTest.cpp @@ -5,7 +5,7 @@ using namespace sibs; TEST_CASE("parse config") { - SibsConfig sibsConfig("tests/src/confTest"); + SibsConfig sibsConfig(Compiler::GCC, "tests/src/confTest"); Result result = Config::readFromFile("tests/src/confTest/project.conf", sibsConfig); if(result.isErr()) { -- cgit v1.2.3