base64: also build for curl

Since the tool itself now uses the base64 code using the curlx way, it
needs to build also when the tool needs it. Starting now, the tool build
defines BULDING_CURL to allow lib-side code to use it.

Follow-up to 2e160c9c65

Closes #12010
This commit is contained in:
Daniel Stenberg 2023-10-02 15:10:55 +02:00
parent f2ff730b38
commit 3ef3eaa27e
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
3 changed files with 3 additions and 1 deletions

View File

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

View File

@ -22,6 +22,7 @@
#
###########################################################################
set(EXE_NAME curl)
add_definitions(-DBUILDING_CURL)
if(USE_MANUAL)
# Use the C locale to ensure that only ASCII characters appear in the

View File

@ -50,6 +50,7 @@ SUBDIRS = ../docs
if USE_CPPFLAG_CURL_STATICLIB
AM_CPPFLAGS += -DCURL_STATICLIB
endif
AM_CPPFLAGS += -DBUILDING_CURL
include Makefile.inc