comparison src/Make_mvc.mak @ 24506:cf773d752eb9 v8.2.2793

patch 8.2.2793: MS-Windows: string literals are writable with MSVC Commit: https://github.com/vim/vim/commit/d23f8bde5cd16b7752cc4a73da106673839ed824 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Apr 21 11:30:48 2021 +0200 patch 8.2.2793: MS-Windows: string literals are writable with MSVC Problem: MS-Windows: string literals are writable with MSVC. Solution: Add the /GF compiler flag. Make mch_write() safer. (Ken Takata, closes #8133)
author Bram Moolenaar <Bram@vim.org>
date Wed, 21 Apr 2021 11:45:04 +0200
parents c1ba42fa843f
children 2e6cc2bf37d8
comparison
equal deleted inserted replaced
24505:b68e47dd5919 24506:cf773d752eb9
487 # If you have a fixed directory for $VIM or $VIMRUNTIME, other than the normal 487 # If you have a fixed directory for $VIM or $VIMRUNTIME, other than the normal
488 # default, use these lines. 488 # default, use these lines.
489 #VIMRCLOC = somewhere 489 #VIMRCLOC = somewhere
490 #VIMRUNTIMEDIR = somewhere 490 #VIMRUNTIMEDIR = somewhere
491 491
492 CFLAGS = -c /W3 /nologo $(CVARS) -I. -Iproto -DHAVE_PATHDEF -DWIN32 \ 492 CFLAGS = -c /W3 /GF /nologo $(CVARS) -I. -Iproto -DHAVE_PATHDEF -DWIN32 \
493 $(CSCOPE_DEFS) $(TERM_DEFS) $(SOUND_DEFS) $(NETBEANS_DEFS) $(CHANNEL_DEFS) \ 493 $(CSCOPE_DEFS) $(TERM_DEFS) $(SOUND_DEFS) $(NETBEANS_DEFS) $(CHANNEL_DEFS) \
494 $(NBDEBUG_DEFS) $(XPM_DEFS) \ 494 $(NBDEBUG_DEFS) $(XPM_DEFS) \
495 $(DEFINES) -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) 495 $(DEFINES) -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER)
496 496
497 #>>>>> end of choices 497 #>>>>> end of choices