diff options
author | Yang Tse <yangsita@gmail.com> | 2011-09-04 17:09:22 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-09-04 17:10:51 +0200 |
commit | 196e0d699f70bf6f519d6f5e670989fd581c1686 (patch) | |
tree | 0884e251de577db27bc649516f8ad1903bc65c33 /lib/setup.h | |
parent | 809cde54166f959cdc84359306b4db22bb3f4c12 (diff) | |
download | curl-196e0d699f70bf6f519d6f5e670989fd581c1686.tar.gz |
setup_once.h cleanup and sync
Diffstat (limited to 'lib/setup.h')
-rw-r--r-- | lib/setup.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/setup.h b/lib/setup.h index c821bc6b4..84c9b1feb 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -603,4 +603,27 @@ int netware_init(void); #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_LIB_SETUP_H */ |