windows: Define WIN32_LEAN_AND_MEAN only when in Windows

This commit is contained in:
João Paulo Taylor Ienczak Zanette 2020-03-30 13:14:57 -03:00
parent d631343888
commit 5892e25875
1 changed files with 1 additions and 1 deletions

View File

@ -1,11 +1,11 @@
#ifndef UNPOSIX_SYS_TYPES_H
#define UNPOSIX_SYS_TYPES_H
#ifdef _MSC_VER
#ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
#endif
#ifdef _MSC_VER
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#endif