mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
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:
parent
f2ff730b38
commit
3ef3eaa27e
@ -31,7 +31,7 @@
|
|||||||
!defined(CURL_DISABLE_SMTP) || \
|
!defined(CURL_DISABLE_SMTP) || \
|
||||||
!defined(CURL_DISABLE_POP3) || \
|
!defined(CURL_DISABLE_POP3) || \
|
||||||
!defined(CURL_DISABLE_IMAP) || \
|
!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 "curl/curl.h"
|
||||||
#include "warnless.h"
|
#include "warnless.h"
|
||||||
#include "curl_base64.h"
|
#include "curl_base64.h"
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#
|
#
|
||||||
###########################################################################
|
###########################################################################
|
||||||
set(EXE_NAME curl)
|
set(EXE_NAME curl)
|
||||||
|
add_definitions(-DBUILDING_CURL)
|
||||||
|
|
||||||
if(USE_MANUAL)
|
if(USE_MANUAL)
|
||||||
# Use the C locale to ensure that only ASCII characters appear in the
|
# Use the C locale to ensure that only ASCII characters appear in the
|
||||||
|
@ -50,6 +50,7 @@ SUBDIRS = ../docs
|
|||||||
if USE_CPPFLAG_CURL_STATICLIB
|
if USE_CPPFLAG_CURL_STATICLIB
|
||||||
AM_CPPFLAGS += -DCURL_STATICLIB
|
AM_CPPFLAGS += -DCURL_STATICLIB
|
||||||
endif
|
endif
|
||||||
|
AM_CPPFLAGS += -DBUILDING_CURL
|
||||||
|
|
||||||
include Makefile.inc
|
include Makefile.inc
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user