Update va_copy macro for BCC (Issue #211)

This commit is contained in:
Michael R Sweet 2018-07-04 01:29:41 -04:00
parent e19d38b5a7
commit a90ff1753a
No known key found for this signature in database
GPG Key ID: 999559A027815955
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@
to get full strings for inline text instead of separated words (Issue #190) to get full strings for inline text instead of separated words (Issue #190)
- No longer build documentation sets on macOS since Xcode no longer supports - No longer build documentation sets on macOS since Xcode no longer supports
them (Issue #198) them (Issue #198)
- Updated the `va_copy` macro for use with BCC (Issue #211)
- The `mxmlNewCDATA` and `mxmlSetCDATA` functions incorrectly added the XML - The `mxmlNewCDATA` and `mxmlSetCDATA` functions incorrectly added the XML
trailer "]]" to the string (Issue #216) trailer "]]" to the string (Issue #216)
- Cross-compiling failed on install (Issue #218) - Cross-compiling failed on install (Issue #218)

View File

@ -1,7 +1,7 @@
/* /*
* String functions for Mini-XML, a small XML file parsing library. * String functions for Mini-XML, a small XML file parsing library.
* *
* Copyright 2003-2017 by Michael R Sweet. * Copyright 2003-2018 by Michael R Sweet.
* *
* These coded instructions, statements, and computer programs are the * These coded instructions, statements, and computer programs are the
* property of Michael R Sweet and are protected by Federal copyright * property of Michael R Sweet and are protected by Federal copyright
@ -28,7 +28,7 @@
# ifdef __va_copy # ifdef __va_copy
# define va_copy(dst,src) __va_copy(dst,src) # define va_copy(dst,src) __va_copy(dst,src)
# else # else
# define va_copy(dst,src) memcpy(&dst, src, sizeof(va_list)) # define va_copy(dst,src) memcpy(&dst, &src, sizeof(va_list))
# endif /* __va_copy */ # endif /* __va_copy */
#endif /* va_copy */ #endif /* va_copy */