miniupnpc: Fix compile warning: comparison between signed and unsigned

receivedata.c: In function ‘receivedata’:
receivedata.c:66: warning: comparison between signed and unsigned

Macro ISINVALID needs to be defined via INVALID_SOCKET on all WIN32 targets, not only for MSVC.
This commit is contained in:
Pali Rohár 2021-01-27 13:12:24 +01:00
parent d693584fdb
commit c8883e8491
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
#ifndef MINIUPNPC_SOCKETDEF_H_INCLUDED
#define MINIUPNPC_SOCKETDEF_H_INCLUDED
#ifdef _MSC_VER
#ifdef _WIN32
#define ISINVALID(s) (INVALID_SOCKET==(s))