godot/thirdparty/miniupnpc/src/miniupnpc_socketdef.h

/* $Id: miniupnpc_socketdef.h,v 1.1 2018/03/13 23:44:10 nanard Exp $ */
/* Miniupnp project : http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
 * Author : Thomas Bernard
 * Copyright (c) 2018 Thomas Bernard
 * This software is subject to the conditions detailed in the
 * LICENCE file provided within this distribution */
#ifndef MINIUPNPC_SOCKETDEF_H_INCLUDED
#define MINIUPNPC_SOCKETDEF_H_INCLUDED

#ifdef _WIN32

#define ISINVALID

#else

#ifndef SOCKET
#define SOCKET
#endif
#ifndef SSIZE_T
#define SSIZE_T
#endif
#ifndef INVALID_SOCKET
#define INVALID_SOCKET
#endif
#ifndef ISINVALID
#define ISINVALID(s)
#endif

#endif

#ifdef _MSC_VER
#define MSC_CAST_INT
#else
#define MSC_CAST_INT
#endif

/* definition of PRINT_SOCKET_ERROR */
#ifdef _WIN32
#define PRINT_SOCKET_ERROR
#else
#define PRINT_SOCKET_ERROR(x)
#endif

#endif /* MINIUPNPC_SOCKETDEF_H_INCLUDED */