Commit c6eda7454 for imagemagick.org
commit c6eda7454518e0aa6166782ac10f6a94bb9a61c5
Author: Cristy <urban-warrior@imagemagick.org>
Date: Fri Sep 4 21:13:30 2026 -0400
eliminate compiler warning
diff --git a/Magick++/lib/BlobRef.cpp b/Magick++/lib/BlobRef.cpp
index 3fd95d924..dd0e96a52 100644
--- a/Magick++/lib/BlobRef.cpp
+++ b/Magick++/lib/BlobRef.cpp
@@ -16,7 +16,11 @@
#include "Magick++/Exception.h"
#include "Magick++/Thread.h"
-#include <string.h>
+#ifdef memchr
+#undef memchr
+#endif
+
+#include <cstring>
Magick::BlobRef::BlobRef(const void* data_,const size_t length_)
: allocator(Magick::Blob::NewAllocator),
diff --git a/Magick++/lib/Magick++/Thread.h b/Magick++/lib/Magick++/Thread.h
index 7367db3e6..8a2f9608d 100644
--- a/Magick++/lib/Magick++/Thread.h
+++ b/Magick++/lib/Magick++/Thread.h
@@ -23,6 +23,8 @@
# include <pthread.h>
#endif // defined(MAGICKCORE_HAVE_PTHREAD)
+#include <mutex>
+
namespace Magick
{
// Mutex lock wrapper