Fix cwrapper warnings from MSVC 2005.

* libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src)
[file scope]: define _CRT_SECURE_NO_DEPRECATE.
This commit is contained in:
Akim Demaille 2009-01-30 02:52:17 -05:00 committed by Charles Wilson
parent 425841cbde
commit 0980a3993a
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2009-01-30 Akim Demaille <demaille@gostai.com>
Fix cwrapper warnings from MSVC 2005.
* libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src)
[file scope]: define _CRT_SECURE_NO_DEPRECATE.
2009-01-29 Akim Demaille <demaille@gostai.com>
Fix bootstrap with older libtool.m4 in reach of aclocal.

View File

@ -2712,6 +2712,9 @@ func_emit_cwrapperexe_src ()
*/
EOF
cat <<"EOF"
#ifdef _MSC_VER
# define _CRT_SECURE_NO_DEPRECATE 1
#endif
#include <stdio.h>
#include <stdlib.h>
#ifdef _MSC_VER