Add the _CRT_SECURE_NO_DEPRECATE definition when building on VC++

2005 (STR #36)
This commit is contained in:
Michael R Sweet 2007-04-18 12:58:36 +00:00
parent d5abcc44b3
commit c27692f2d0
5 changed files with 22 additions and 6 deletions

View File

@ -5,6 +5,8 @@ CHANGES IN Mini-XML 2.3
- Added two exceptions to the LGPL to support static
linking of applications against Mini-XML.
- Added the _CRT_SECURE_NO_DEPRECATE definition when
building on VC++ 2005 (STR #36)
- mxmlLoad*() did not detect missing > characters in
elements (STR #41)
- mxmlLoad*() did not detect missing close tags at the end

2
configure vendored
View File

@ -1269,7 +1269,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_config_headers="$ac_config_headers config.h"
VERSION=2.4
VERSION=2.3
cat >>confdefs.h <<_ACEOF
#define MXML_VERSION "Mini-XML v$VERSION"

View File

@ -2,7 +2,7 @@
<html>
<head>
<title>Documentation</title>
<meta name='creator' content='Mini-XML v2.4'>
<meta name='creator' content='Mini-XML v2.3'>
<style type='text/css'><!--
h1, h2, h3, p { font-family: sans-serif; text-align: justify; }
tt, pre a:link, pre a:visited, tt a:link, tt a:visited { font-weight: bold; color: #7f0000; }

View File

@ -10,6 +10,9 @@
<li>Added two exceptions to the LGPL to support static
linking of applications against Mini-XML.</li>
<li>Added the _CRT_SECURE_NO_DEPRECATE definition when
building on VC++ 2005 (STR #36)</li>
<li>mxmlLoad*() did not detect missing > characters in
elements (STR #41)</li>

View File

@ -1,9 +1,9 @@
/*
* "$Id: config.h,v 1.2 2004/06/25 18:52:34 mike Exp $"
* "$Id$"
*
* Configuration file for Mini-XML, a small XML-like file parsing library.
*
* Copyright 2003-2004 by Michael Sweet.
* Copyright 2003-2007 by Michael Sweet.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@ -16,6 +16,17 @@
* GNU General Public License for more details.
*/
/*
* Beginning with VC2005, Microsoft breaks ISO C and POSIX conformance
* by deprecating a number of functions in the name of security, even
* when many of the affected functions are otherwise completely secure.
* The _CRT_SECURE_NO_DEPRECATE definition ensures that we won't get
* warnings from their use...
*/
#define _CRT_SECURE_NO_DEPRECATE
/*
* Include necessary headers...
*/
@ -31,7 +42,7 @@
* Version number...
*/
#define MXML_VERSION "Mini-XML v2.0"
#define MXML_VERSION "Mini-XML v2.3"
/*
@ -65,5 +76,5 @@ extern int mxml_vsnprintf(char *, size_t, const char *, va_list);
# endif /* !HAVE_VSNPRINTF */
/*
* End of "$Id: config.h,v 1.2 2004/06/25 18:52:34 mike Exp $".
* End of "$Id$".
*/