PageRenderTime 17ms CodeModel.GetById 11ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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