author | Tero Marttila <terom@fixme.fi> |
Fri, 16 Jan 2009 21:24:45 +0200 | |
changeset 399 | c7295b72731a |
permissions | -rw-r--r-- |
#ifndef NETWORK_PLATFORM_H #define NETWORK_PLATFORM_H /** * @file * * Takes care of platform-specific imports and #defines as regards the Network code */ #ifndef WIN32 // NetworkAddress #include <netinet/in.h> // NetworkEndpoint #include <sys/types.h> #include <netdb.h> // NetworkSocket #include <sys/types.h> #include <sys/socket.h> #include <unistd.h> #include <fcntl.h> #define closesocket close #else #error "This network code won't compile on win32 :)" #endif #endif