Add the _CRT_SECURE_NO_DEPRECATE definition when building on VC++

2005 (STR #36)
pull/193/head
Michael R Sweet 18 years ago
parent d5abcc44b3
commit c27692f2d0
  1. 2
      CHANGES
  2. 2
      configure
  3. 2
      doc/reference.html
  4. 3
      doc/relnotes.html
  5. 19
      vcnet/config.h

@ -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

@ -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"

@ -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; }

@ -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>

@ -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$".
*/

Loading…
Cancel
Save