[libpng15] Use memcpy instead of CopyMemory in the definition of png_memcpy.

The Borland C++ build breaks otherwise (Cosmin).
This commit is contained in:
Cosmin Truta 2014-11-14 09:41:41 -06:00 committed by Glenn Randers-Pehrson
parent 5310158c37
commit 7852e7786b
3 changed files with 7 additions and 3 deletions

View File

@ -44,6 +44,8 @@ Version 1.5.20rc02 [November 14, 2014]
similarly-named macros are already defined in makefiles. This behavior similarly-named macros are already defined in makefiles. This behavior
is different from POSIX make and other make programs. Surround the is different from POSIX make and other make programs. Surround the
macro definitions with ifndef guards (Cosmin). macro definitions with ifndef guards (Cosmin).
Use memcpy instead of CopyMemory in the definition of png_memcpy.
The Borland C++ build breaks otherwise (Cosmin).
Send comments/corrections/commendations to png-mng-implement at lists.sf.net Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit (subscription required; visit

View File

@ -4259,10 +4259,12 @@ Version 1.5.20beta02 [November 10, 2014]
Version 1.5.20rc01 [November 13, 2014] Version 1.5.20rc01 [November 13, 2014]
Version 1.5.20rc02 [November 14, 2014] Version 1.5.20rc02 [November 14, 2014]
The macros passed in the command line to Borland make are ignored if The macros passed in the command line to Borland make were ignored if
similarly-named macros are already defined in makefiles. This behavior similarly-named macros were already defined in makefiles. This behavior
is different from POSIX make and other make programs. Surround the is different from POSIX make and other make programs. Surround the
macro definitions with ifndef guards (Cosmin). macro definitions with ifndef guards (Cosmin).
Use memcpy instead of CopyMemory in the definition of png_memcpy.
The Borland C++ build breaks otherwise (Cosmin).
Send comments/corrections/commendations to png-mng-implement at lists.sf.net Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit (subscription required; visit

View File

@ -418,7 +418,7 @@
# define CVT_PTR_NOCHECK(ptr) (ptr) # define CVT_PTR_NOCHECK(ptr) (ptr)
# define png_strlen lstrlenA # define png_strlen lstrlenA
# define png_memcmp memcmp # define png_memcmp memcmp
# define png_memcpy CopyMemory # define png_memcpy memcpy
# define png_memset memset # define png_memset memset
# else # else
# define CVT_PTR(ptr) (ptr) # define CVT_PTR(ptr) (ptr)