1
0
forked from aniani/vim

patch 8.2.0246: MSVC: deprecation warnings with Ruby

Problem:    MSVC: deprecation warnings with Ruby.
Solution:   Move _CRT_SECURE_NO_DEPRECATE to build file. (Ken Takata,
            closes #5622)
This commit is contained in:
Bram Moolenaar 2020-02-11 23:01:39 +01:00
parent 5489eab345
commit 49c99fcca0
6 changed files with 10 additions and 24 deletions

View File

@ -657,6 +657,8 @@ OPTFLAG = /Ox
! if "$(OPTIMIZE)" != "SPACE" ! if "$(OPTIMIZE)" != "SPACE"
OPTFLAG = $(OPTFLAG) /GL OPTFLAG = $(OPTFLAG) /GL
! endif ! endif
# Visual Studio 2005 has 'deprecated' many of the standard CRT functions
CFLAGS = $(CFLAGS) /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE
! endif ! endif
# (/Wp64 is deprecated in VC9 and generates an obnoxious warning.) # (/Wp64 is deprecated in VC9 and generates an obnoxious warning.)

View File

@ -18,12 +18,6 @@
# endif # endif
#endif #endif
// Stop the VC2005 compiler from nagging.
#if _MSC_VER >= 1400
# define _CRT_SECURE_NO_DEPRECATE
# define _CRT_NONSTDC_NO_DEPRECATE
#endif
#define BINARY_FILE_IO #define BINARY_FILE_IO
#define USE_EXE_NAME // use argv[0] for $VIM #define USE_EXE_NAME // use argv[0] for $VIM
#define USE_TERM_CONSOLE #define USE_TERM_CONSOLE

View File

@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
246,
/**/ /**/
245, 245,
/**/ /**/

View File

@ -119,12 +119,6 @@
# endif # endif
#endif #endif
// Visual Studio 2005 has 'deprecated' many of the standard CRT functions
#if _MSC_VER >= 1400
# define _CRT_SECURE_NO_DEPRECATE
# define _CRT_NONSTDC_NO_DEPRECATE
#endif
/* /*
* VIM_SIZEOF_INT is used in feature.h, and the system-specific included files * VIM_SIZEOF_INT is used in feature.h, and the system-specific included files
* need items from feature.h. Therefore define VIM_SIZEOF_INT here. * need items from feature.h. Therefore define VIM_SIZEOF_INT here.

View File

@ -7,12 +7,6 @@
* See README.txt for an overview of the Vim source code. * See README.txt for an overview of the Vim source code.
*/ */
// Visual Studio 2005 has 'deprecated' many of the standard CRT functions
#if _MSC_VER >= 1400
# define _CRT_SECURE_NO_DEPRECATE
# define _CRT_NONSTDC_NO_DEPRECATE
#endif
// cproto fails on missing include files // cproto fails on missing include files
#ifndef PROTO #ifndef PROTO
# include <io.h> # include <io.h>