File: ntohl.h

package info (click to toggle)
hat 2.05%2Brerolled-7
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 9,316 kB
  • ctags: 1,077
  • sloc: haskell: 74,306; ansic: 9,588; sh: 1,770; makefile: 597
file content (13 lines) | stat: -rw-r--r-- 237 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13

#if defined(WIN32)

/* Windows does not have ntohl, so define it here */
#define htonl(x) ntohl(x)
uint32_t ntohl(uint32_t x);

#else

/* Unix does, so just use it */
#include <netinet/in.h>		/* for ntohl() macro */

#endif /* WIN32 */