|
@@ -17,12 +17,16 @@ if rtconfig.CROSS_TOOL == 'msvc':
|
|
'_CRT_DECLARE_NONSTDC_NAMES=0',
|
|
'_CRT_DECLARE_NONSTDC_NAMES=0',
|
|
# errno macro redefinition
|
|
# errno macro redefinition
|
|
'_CRT_ERRNO_DEFINED',
|
|
'_CRT_ERRNO_DEFINED',
|
|
- # time.h conflicts
|
|
|
|
|
|
+ # avoid time.h conflicts, such as struct timespec, ctime, difftime...
|
|
'_CRT_NO_TIME_T',
|
|
'_CRT_NO_TIME_T',
|
|
# disable deprecation of unsafe functions, such as strncpy
|
|
# disable deprecation of unsafe functions, such as strncpy
|
|
'_CRT_SECURE_NO_WARNINGS',
|
|
'_CRT_SECURE_NO_WARNINGS',
|
|
# RT_VESRION conflicts in winuser.h
|
|
# RT_VESRION conflicts in winuser.h
|
|
'NORESOURCE',
|
|
'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.
|
|
# remove no need file.
|