sys/time.h: add WIN32_LEAN_AND_MEAN guards

This commit is contained in:
Lucas Cavalcante de Sousa 2020-03-18 18:00:58 -03:00 committed by João Paulo Taylor Ienczak Zanette
parent 82e9fb78a5
commit 5d5ae6860f
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,9 @@
#ifndef SYS_TIME_H
#define SYS_TIME_H
#define WIN32_LEAN_AND_MEAN
#ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN 1
#endif
// Windows Kit for Windows 10 already defines `struct timeval` and `time_t`
#include <winsock2.h>
#include <time.h>