Commit 890528e0 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

COMP: If compiler know strtoll or strtoi64, then no need for compiling strtooff.c

parent 3b3dd31b
......@@ -77,7 +77,6 @@ SET(libCurl_SRCS
ssluse.c
strequal.c
strerror.c
strtoofft.c
telnet.c
timeval.c
transfer.c
......@@ -311,6 +310,7 @@ IF(HAVE_SIGNAL_FUNC AND HAVE_SIGNAL_MACRO)
ENDIF(HAVE_SIGNAL_FUNC AND HAVE_SIGNAL_MACRO)
CHECK_SYMBOL_EXISTS(uname "${CURL_INCLUDES}" HAVE_UNAME)
CHECK_SYMBOL_EXISTS(strtoll "${CURL_INCLUDES}" HAVE_STRTOLL)
CHECK_SYMBOL_EXISTS(_strtoi64 "${CURL_INCLUDES}" HAVE__STRTOI64)
CHECK_SYMBOL_EXISTS(strerror_r "${CURL_INCLUDES}" HAVE_STRERROR_R)
CHECK_SYMBOL_EXISTS(siginterrupt "${CURL_INCLUDES}" HAVE_SIGINTERRUPT)
CHECK_SYMBOL_EXISTS(perror "${CURL_INCLUDES}" HAVE_PERROR)
......@@ -321,6 +321,11 @@ IF (NOT HAVE_STRTOK_R)
strtok.c
)
ENDIF (NOT HAVE_STRTOK_R)
IF(NOT HAVE_STRTOLL AND NOT HAVE__STRTOI64)
SET(libCurl_SRCS ${libCurl_SRCS}
strtoofft.c
)
ENDIF(NOT HAVE_STRTOLL AND NOT HAVE__STRTOI64)
# sigaction and sigsetjmp are special. Use special mechanism for
# detecting those, but only if previous attempt failed.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment