aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-09-04 17:09:22 +0200
committerYang Tse <yangsita@gmail.com>2011-09-04 17:10:51 +0200
commit196e0d699f70bf6f519d6f5e670989fd581c1686 (patch)
tree0884e251de577db27bc649516f8ad1903bc65c33 /src
parent809cde54166f959cdc84359306b4db22bb3f4c12 (diff)
setup_once.h cleanup and sync
Diffstat (limited to 'src')
-rw-r--r--src/setup.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/setup.h b/src/setup.h
index d2562a244..fb6f4e62f 100644
--- a/src/setup.h
+++ b/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 */