From cc6b77bc12eae8f52371b669c053437ed90b8146 Mon Sep 17 00:00:00 2001 From: Cristy Date: Wed, 18 Jan 2017 17:31:33 -0500 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/pull/358 --- MagickCore/MagickCore.h | 3 +++ MagickWand/MagickWand.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/MagickCore/MagickCore.h b/MagickCore/MagickCore.h index 535176da78..7f02faa4a3 100644 --- a/MagickCore/MagickCore.h +++ b/MagickCore/MagickCore.h @@ -47,6 +47,9 @@ extern "C" { # undef inline # endif #endif +#if __cplusplus > 199711L +#define register +#endif #define MAGICKCORE_CHECK_VERSION(major,minor,micro) \ ((MAGICKCORE_MAJOR_VERSION > (major)) || \ diff --git a/MagickWand/MagickWand.h b/MagickWand/MagickWand.h index 935e2cd4f2..c509e95cee 100644 --- a/MagickWand/MagickWand.h +++ b/MagickWand/MagickWand.h @@ -47,6 +47,9 @@ extern "C" { # undef inline # endif #endif +#if __cplusplus > 199711L +#define register +#endif #define MAGICKWAND_CHECK_VERSION(major,minor,micro) \ ((MAGICKWAND_MAJOR_VERSION > (major)) || \