diff options
| author | Meco Man <[email protected]> | 2022-05-15 14:23:11 -0400 |
|---|---|---|
| committer | guo <[email protected]> | 2022-05-16 10:02:22 +0800 |
| commit | 19abf927d210338ea830908af7de37bb23d12682 (patch) | |
| tree | df74c4eb1fee1cae6dfee7cd3293fc6ff633edb7 /bsp/simulator/drivers/SConscript | |
| parent | 2d418531242353fad21d6309704be5dc544c7d3e (diff) | |
[simulator] avoid conflicts between winsock.h and sys/time.h
Diffstat (limited to 'bsp/simulator/drivers/SConscript')
| -rw-r--r-- | bsp/simulator/drivers/SConscript | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bsp/simulator/drivers/SConscript b/bsp/simulator/drivers/SConscript index ab6d4fdf56..e5d9b6ad08 100644 --- a/bsp/simulator/drivers/SConscript +++ b/bsp/simulator/drivers/SConscript @@ -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. |
