From 4b463992e59ad8338618b71a314d15c20525787a Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Tue, 24 Dec 2019 21:28:32 +0800 Subject: lib: fix warnings found when porting to NuttX - Undefine DEBUGASSERT in curl_setup_once.h in case it was already defined as a system macro. - Don't compile write32_le in curl_endian unless CURL_SIZEOF_CURL_OFF_T > 4, since it's only used by Curl_write64_le. - Include in socketpair.c. Closes https://github.com/curl/curl/pull/4756 --- lib/curl_setup_once.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/curl_setup_once.h') diff --git a/lib/curl_setup_once.h b/lib/curl_setup_once.h index 8db74e9b4..8890f3890 100644 --- a/lib/curl_setup_once.h +++ b/lib/curl_setup_once.h @@ -374,6 +374,7 @@ typedef int sig_atomic_t; * Macro used to include assertion code only in debug builds. */ +#undef DEBUGASSERT #if defined(DEBUGBUILD) && defined(HAVE_ASSERT_H) #define DEBUGASSERT(x) assert(x) #else -- cgit v1.2.3