aboutsummaryrefslogtreecommitdiff
path: root/lib/warnless.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-05-24 20:39:58 +0200
committerYang Tse <yangsita@gmail.com>2011-05-24 20:39:58 +0200
commitb7357176063256a44b4a5a20c6b9bbe92bdda713 (patch)
tree832ce5f2036b99c11cc2f0d301629502e99afcc6 /lib/warnless.h
parentec33742d1bd22fd964fda9a9947a4ec3c3e3236a (diff)
compiler warning: fix
Fix compiler warning: variable was set but never used Fix compiler warning: clobber ignored
Diffstat (limited to 'lib/warnless.h')
-rw-r--r--lib/warnless.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/warnless.h b/lib/warnless.h
index 7b9bd3c7f..a27c7d32c 100644
--- a/lib/warnless.h
+++ b/lib/warnless.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -38,4 +38,20 @@ ssize_t curlx_uztosz(size_t uznum);
size_t curlx_sotouz(curl_off_t sonum);
+#if defined(__INTEL_COMPILER) && defined(__unix__)
+
+int curlx_FD_ISSET(int fd, fd_set *fdset);
+
+void curlx_FD_SET(int fd, fd_set *fdset);
+
+void curlx_FD_ZERO(fd_set *fdset);
+
+#ifndef BUILDING_WARNLESS_C
+# define FD_ISSET(a,b) curlx_FD_ISSET((a),(b))
+# define FD_SET(a,b) curlx_FD_SET((a),(b))
+# define FD_ZERO(a) curlx_FD_ZERO((a))
+#endif
+
+#endif /* __INTEL_COMPILER && __unix__ */
+
#endif /* HEADER_CURL_WARNLESS_H */