[simulator] avoid conflicts between winsock.h and sys/time.h

This commit is contained in:
Meco Man
2022-05-16 10:02:22 +08:00
committed by guo
parent 2d41853124
commit 19abf927d2
4 changed files with 6 additions and 14 deletions
+5 -1
View File
@@ -17,12 +17,16 @@ if rtconfig.CROSS_TOOL == 'msvc':
'_CRT_DECLARE_NONSTDC_NAMES=0',
# errno macro redefinition
'_CRT_ERRNO_DEFINED',
# time.h conflicts
# avoid time.h conflicts, such as struct timespec, ctime, difftime...
'_CRT_NO_TIME_T',
# disable deprecation of unsafe functions, such as strncpy
'_CRT_SECURE_NO_WARNINGS',
# RT_VESRION conflicts in winuser.h
'NORESOURCE',
# lean and mean for Windows.h, exclude winsock.h when include Windows.h
# avoid conlicts between sys/select.h, time.h, and winsock.h
# such as fd_set related, struct timeval...
'WIN32_LEAN_AND_MEAN'
]
# remove no need file.