]> granicus.if.org Git - imagemagick/blobdiff - MagickCore/memory-private.h
...
[imagemagick] / MagickCore / memory-private.h
index ca1cfbf9394b5fe1240d2f28c28fc71650f3518b..7d9fba9ac3f671f809f3a1bd659c58bec6ff2ec6 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  Copyright 1999-2014 ImageMagick Studio LLC, a non-profit organization
+  Copyright 1999-2017 ImageMagick Studio LLC, a non-profit organization
   dedicated to making software imaging solutions freely available.
   
   You may not use this file except in compliance with the License.
 
   MagickCore private memory methods.
 */
-#ifndef _MAGICKCORE_MEMORY_PRIVATE_H
-#define _MAGICKCORE_MEMORY_PRIVATE_H
+#ifndef MAGICKCORE_MEMORY_PRIVATE_H
+#define MAGICKCORE_MEMORY_PRIVATE_H
 
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
 #endif
 
 
-#if defined(MAGICK_TARGET_CPU) && (MAGICK_TARGET_CPU == powerpc)
+#if defined(__powerpc__)
 #  define CACHE_LINE_SIZE  128
 #else
 #  define CACHE_LINE_SIZE  64
@@ -42,6 +42,9 @@ extern "C" {
 #define MagickAssumeAligned(address)  (address)
 #endif
 
+MagickExport MagickBooleanType 
+  HeapOverflowSanityCheck(const size_t,const size_t) magick_alloc_sizes(1,2);
+
 #if defined(__cplusplus) || defined(c_plusplus)
 }
 #endif