Fix -fno-inline build by promoting INVALID_SOCKET to global scope

This commit is contained in:
Kp 2014-11-02 17:05:10 +00:00
parent e766381265
commit 60837a7cfb

View file

@ -127,11 +127,14 @@ static const int require_tracker_socket = 0;
static fix64 StartAbortMenuTime;
#ifndef _WIN32
const int INVALID_SOCKET = -1;
#endif
struct RAIIsocket
{
#ifndef _WIN32
typedef int SOCKET;
static const int INVALID_SOCKET = -1;
int closesocket(SOCKET s)
{
return close(s);