1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

x11-toolkits/nucleo: #include <cstring>

This is fallout from png upgrade.  Modern GCC needs <cstring> for memmove,
although clang seems to be happy without it.
This commit is contained in:
John Marino 2015-01-03 01:30:36 +00:00
parent 942e944991
commit 0c3bc58a90
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=376077

View File

@ -1,6 +1,14 @@
--- nucleo/image/encoding/PNGenc.cxx.orig 2008-06-05 12:52:33 UTC
+++ nucleo/image/encoding/PNGenc.cxx
@@ -35,7 +35,7 @@ namespace nucleo {
@@ -9,6 +9,7 @@
*
*/
+#include <cstring>
#include <nucleo/config.H>
#include <nucleo/image/Image.H>
@@ -35,7 +36,7 @@ namespace nucleo {
static void
png_memory_write_data(png_structp png_ptr,
png_bytep data, png_size_t length) {
@ -9,7 +17,7 @@
void *pdst = pim->data+pim->p ;
// std::cerr << "PNG: writing " << length << " bytes from " << (void *)data << " to " << pdst << std::endl ;
@@ -130,7 +130,7 @@ namespace nucleo {
@@ -130,7 +131,7 @@ namespace nucleo {
static void
png_memory_read_data(png_structp png_ptr, png_bytep data, png_size_t length) {
@ -18,7 +26,7 @@
memmove(data, pim->data+pim->p, length) ;
pim->p+=length ;
}
@@ -170,7 +170,7 @@ namespace nucleo {
@@ -170,7 +171,7 @@ namespace nucleo {
&compression_type, &filter_type) ;
if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)