From fc98e2da2b6718a3fc202da694e433fc10455332 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 22 Dec 2008 15:59:52 +0100 Subject: [PATCH] Fix wrapper warnings from MSVC 2005. * libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src): Define _CRT_SECURE_NO_DEPRECATE, _chmod, _getcwd, and _putenv. --- libltdl/config/ltmain.m4sh | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index 334a9f7..2da1a47 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -2724,7 +2724,6 @@ func_to_host_pathlist () func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER @@ -2747,6 +2749,12 @@ EOF # include # include # define setmode _setmode + // Deprecations starting with MSVC 2005. +# if 1100 <= _MSC_VER +# define chmod _chmod +# define getcwd _getcwd +# define putenv _putenv +# endif #else # include # include -- 1.6.0.4.790.gaa14a