1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

Move Convert definitions to TcpSocket.h

This commit is contained in:
Ted John
2017-02-09 12:31:18 +00:00
parent 5787a0bf90
commit d0a05df106
3 changed files with 8 additions and 6 deletions

View File

@@ -511,6 +511,8 @@ bool InitialiseWSA()
_wsaInitialised = true;
}
return _wsaInitialised;
#else
return true;
#endif
}

View File

@@ -65,3 +65,9 @@ ITcpSocket * CreateTcpSocket();
bool InitialiseWSA();
void DisposeWSA();
namespace Convert
{
uint16 HostToNetwork(uint16 value);
uint16 NetworkToHost(uint16 value);
}

View File

@@ -250,12 +250,6 @@ private:
uint8 * save_for_network(size_t &out_size, const std::vector<const ObjectRepositoryItem *> &objects) const;
};
namespace Convert
{
uint16 HostToNetwork(uint16 value);
uint16 NetworkToHost(uint16 value);
}
#endif // __cplusplus
#else /* DISABLE_NETWORK */
#define NETWORK_STREAM_ID "Multiplayer disabled"