1
0
Fork 0

Provide declarations of hton*() and ntoh*()

This commit is contained in:
Frederic Bouvier 2011-01-05 17:38:15 +01:00
parent 402982f901
commit 1c792fb97c
3 changed files with 6 additions and 0 deletions

View file

@ -4,6 +4,8 @@
#ifdef HAVE_WINDOWS_H #ifdef HAVE_WINDOWS_H
# include <windows.h> # include <windows.h>
#else
# include <netinet/in.h> // htonl() ntohl()
#endif #endif
#include <iostream> #include <iostream>

View file

@ -4,6 +4,8 @@
#ifdef HAVE_WINDOWS_H #ifdef HAVE_WINDOWS_H
# include <windows.h> # include <windows.h>
#else
# include <netinet/in.h> // htonl() ntohl()
#endif #endif
#ifndef _WIN32 #ifndef _WIN32

View file

@ -4,6 +4,8 @@
#ifdef HAVE_WINDOWS_H #ifdef HAVE_WINDOWS_H
# include <windows.h> # include <windows.h>
#else
# include <netinet/in.h> // htonl() ntohl()
#endif #endif
#include <iostream> #include <iostream>