Fix build errors with curl disabled

This commit is contained in:
sfan5 2024-04-28 12:31:15 +02:00
parent df4c9e2903
commit fc0ac64277
3 changed files with 3 additions and 3 deletions

@ -728,7 +728,7 @@ void TestUtilities::testIsBlockInSight()
void TestUtilities::testColorizeURL()
{
#ifdef USE_CURL
#if USE_CURL
#define RED COLOR_CODE("#faa")
#define GREY COLOR_CODE("#aaa")
#define WHITE COLOR_CODE("#fff")

@ -17,7 +17,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "colorize.h"
#ifdef USE_CURL
#if USE_CURL
#include <curl/urlapi.h>
#include "log.h"

@ -22,7 +22,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define COLOR_CODE(color) "\x1b(c@" color ")"
#ifdef USE_CURL
#if USE_CURL
/**
* Colorize URL to highlight the hostname and any unsafe characters