/src/ares/ares_nowarn.h

http://github.com/joyent/libuv · C++ Header · 55 lines · 26 code · 15 blank · 14 comment · 1 complexity · a03f849d031f99adf6ddc2c373b7021e MD5 · raw file

  1. #ifndef HEADER_CARES_NOWARN_H
  2. #define HEADER_CARES_NOWARN_H
  3. /* Copyright (C) 2010-2011 by Daniel Stenberg
  4. *
  5. * Permission to use, copy, modify, and distribute this
  6. * software and its documentation for any purpose and without
  7. * fee is hereby granted, provided that the above copyright
  8. * notice appear in all copies and that both that copyright
  9. * notice and this permission notice appear in supporting
  10. * documentation, and that the name of M.I.T. not be used in
  11. * advertising or publicity pertaining to distribution of the
  12. * software without specific, written prior permission.
  13. * M.I.T. makes no representations about the suitability of
  14. * this software for any purpose. It is provided "as is"
  15. * without express or implied warranty.
  16. */
  17. int aresx_uztosi(size_t uznum);
  18. int aresx_sltosi(long slnum);
  19. int aresx_sztosi(ssize_t sznum);
  20. unsigned int aresx_sztoui(ssize_t sznum);
  21. #if defined(__INTEL_COMPILER) && defined(__unix__)
  22. int aresx_FD_ISSET(int fd, fd_set *fdset);
  23. void aresx_FD_SET(int fd, fd_set *fdset);
  24. void aresx_FD_ZERO(fd_set *fdset);
  25. unsigned short aresx_htons(unsigned short usnum);
  26. unsigned short aresx_ntohs(unsigned short usnum);
  27. #ifndef BUILDING_ARES_NOWARN_C
  28. # undef FD_ISSET
  29. # define FD_ISSET(a,b) aresx_FD_ISSET((a),(b))
  30. # undef FD_SET
  31. # define FD_SET(a,b) aresx_FD_SET((a),(b))
  32. # undef FD_ZERO
  33. # define FD_ZERO(a) aresx_FD_ZERO((a))
  34. # undef htons
  35. # define htons(a) aresx_htons((a))
  36. # undef ntohs
  37. # define ntohs(a) aresx_ntohs((a))
  38. #endif
  39. #endif /* __INTEL_COMPILER && __unix__ */
  40. #endif /* HEADER_CARES_NOWARN_H */