mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 02:06:14 +08:00
[simulator] avoid conflicts between winsock.h and sys/time.h
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user