On Mon, 19 Apr 2021, Kevin R. Bulgrien via curl-library wrote:

-#ifdef USE_WINSOCK
+#if defined(USE_WINSOCK) || \
+   !defined(SHUT_RD) && (defined(HAVE_SOCKET_H) || defined(HAVE_SYS_SOCKET_H))
#  define SHUT_RD   0x00
#  define SHUT_WR   0x01
#  define SHUT_RDWR 0x02

Isn't it better to just do #ifndef for each define? Like this:

  https://github.com/curl/curl/pull/6925

--

 / daniel.haxx.se
 | Commercial curl support up to 24x7 is available!
 | Private help, bug fixes, support, ports, new features
 | https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to