base64: drop BUILDING_CURL macro, always include in tests/server

Before this patch, building tests/server (or curl with winbuild) was
broken in rare builds when many features were explicitly disabled.

Fix it by enabling base64 functions unconditionally when building
for anything other than libcurl.

Closes #16691
This commit is contained in:
Viktor Szakats 2025-03-12 19:39:06 +01:00
parent 07f984a776
commit c0a70c564d
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
3 changed files with 1 additions and 3 deletions

View file

@ -32,7 +32,7 @@
!defined(CURL_DISABLE_POP3) || \
!defined(CURL_DISABLE_IMAP) || \
!defined(CURL_DISABLE_DIGEST_AUTH) || \
!defined(CURL_DISABLE_DOH) || defined(USE_SSL) || defined(BUILDING_CURL)
!defined(CURL_DISABLE_DOH) || defined(USE_SSL) || !defined(BUILDING_LIBCURL)
#include "curl/curl.h"
#include "warnless.h"
#include "curl_base64.h"

View file

@ -22,7 +22,6 @@
#
###########################################################################
set(EXE_NAME curl)
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS "BUILDING_CURL")
set(_curl_cfiles_gen "")
set(_curl_hfiles_gen "")

View file

@ -51,7 +51,6 @@ bin_PROGRAMS = curl
if USE_CPPFLAG_CURL_STATICLIB
AM_CPPFLAGS += -DCURL_STATICLIB
endif
AM_CPPFLAGS += -DBUILDING_CURL
AM_LDFLAGS =
if USE_UNICODE