curlx: dedupe basename copies into curlx_basename()

Also stop redefining system `basename()` symbol. Call `curlx_basename()`
instead, and map that to `basename()` if available.

Closes #20424
This commit is contained in:
Viktor Szakats 2026-01-25 05:35:00 +01:00
parent 0e2507a3c6
commit 6974bd7cc8
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
7 changed files with 54 additions and 79 deletions

View file

@ -25,6 +25,7 @@
LIB_CURLX_CFILES = \
curlx/base64.c \
curlx/basename.c \
curlx/dynbuf.c \
curlx/fopen.c \
curlx/inet_ntop.c \
@ -42,8 +43,9 @@ LIB_CURLX_CFILES = \
curlx/winapi.c
LIB_CURLX_HFILES = \
curlx/binmode.h \
curlx/base64.h \
curlx/binmode.h \
curlx/basename.h \
curlx/curlx.h \
curlx/dynbuf.h \
curlx/fopen.h \