mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Fix build errors with curl disabled
This commit is contained in:
parent
df4c9e2903
commit
fc0ac64277
@ -728,7 +728,7 @@ void TestUtilities::testIsBlockInSight()
|
|||||||
|
|
||||||
void TestUtilities::testColorizeURL()
|
void TestUtilities::testColorizeURL()
|
||||||
{
|
{
|
||||||
#ifdef USE_CURL
|
#if USE_CURL
|
||||||
#define RED COLOR_CODE("#faa")
|
#define RED COLOR_CODE("#faa")
|
||||||
#define GREY COLOR_CODE("#aaa")
|
#define GREY COLOR_CODE("#aaa")
|
||||||
#define WHITE COLOR_CODE("#fff")
|
#define WHITE COLOR_CODE("#fff")
|
||||||
|
@ -17,7 +17,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||||||
|
|
||||||
#include "colorize.h"
|
#include "colorize.h"
|
||||||
|
|
||||||
#ifdef USE_CURL
|
#if USE_CURL
|
||||||
|
|
||||||
#include <curl/urlapi.h>
|
#include <curl/urlapi.h>
|
||||||
#include "log.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 ")"
|
#define COLOR_CODE(color) "\x1b(c@" color ")"
|
||||||
|
|
||||||
#ifdef USE_CURL
|
#if USE_CURL
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Colorize URL to highlight the hostname and any unsafe characters
|
* Colorize URL to highlight the hostname and any unsafe characters
|
||||||
|
Loading…
Reference in New Issue
Block a user