mirror of
https://github.com/curl/curl.git
synced 2026-08-24 10:43:32 +03:00
setup_once.h cleanup and sync
This commit is contained in:
parent
809cde5416
commit
196e0d699f
3 changed files with 51 additions and 24 deletions
23
src/setup.h
23
src/setup.h
|
|
@ -226,4 +226,27 @@ int fileno( FILE *stream);
|
|||
#include "setup_once.h"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Definition of our NOP statement Object-like macro
|
||||
*/
|
||||
|
||||
#ifndef Curl_nop_stmt
|
||||
# define Curl_nop_stmt do { } WHILE_FALSE
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Ensure that Winsock and lwIP TCP/IP stacks are not mixed.
|
||||
*/
|
||||
|
||||
#if defined(__LWIP_OPT_H__)
|
||||
# if defined(SOCKET) || \
|
||||
defined(USE_WINSOCK) || \
|
||||
defined(HAVE_ERRNO_H) || \
|
||||
defined(HAVE_WINSOCK_H) || \
|
||||
defined(HAVE_WINSOCK2_H) || \
|
||||
defined(HAVE_WS2TCPIP_H)
|
||||
# error "Winsock and lwIP TCP/IP stack definitions shall not coexist!"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif /* HEADER_CURL_SRC_SETUP_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue