diff --git a/magick/annotate.h b/magick/annotate.h
index 65356ac..93a4e14 100644
--- a/magick/annotate.h
+++ b/magick/annotate.h
@@ -24,14 +24,14 @@
 
 #include "magick/draw.h"
 
-extern MagickExport ssize_t
-  FormatMagickCaption(Image *,DrawInfo *,TypeMetric *,char **);
-
 extern MagickExport MagickBooleanType
   AnnotateImage(Image *,const DrawInfo *),
   GetMultilineTypeMetrics(Image *,const DrawInfo *,TypeMetric *),
   GetTypeMetrics(Image *,const DrawInfo *,TypeMetric *);
 
+extern MagickExport ssize_t
+  FormatMagickCaption(Image *,DrawInfo *,TypeMetric *,char **);
+
 #if defined(__cplusplus) || defined(c_plusplus)
 }
 #endif
diff --git a/magick/cache-private.h b/magick/cache-private.h
index d3d8dbe..2404353 100644
--- a/magick/cache-private.h
+++ b/magick/cache-private.h
@@ -53,8 +53,8 @@
   (*SyncAuthenticPixelsHandler)(Image *,ExceptionInfo *);
 
 typedef const PixelPacket
-  *(*GetVirtualPixelHandler)(const Image *,const VirtualPixelMethod,const ssize_t,
-    const ssize_t,const size_t,const size_t,ExceptionInfo *),
+  *(*GetVirtualPixelHandler)(const Image *,const VirtualPixelMethod,
+    const ssize_t,const ssize_t,const size_t,const size_t,ExceptionInfo *),
   *(*GetVirtualPixelsHandler)(const Image *);
 
 typedef PixelPacket
@@ -211,8 +211,8 @@
   *GetVirtualIndexesFromNexus(const Cache,NexusInfo *);
 
 extern MagickExport const PixelPacket
-  *GetVirtualPixelsFromNexus(const Image *,const VirtualPixelMethod,const ssize_t,
-    const ssize_t,const size_t,const size_t,NexusInfo *,
+  *GetVirtualPixelsFromNexus(const Image *,const VirtualPixelMethod,
+    const ssize_t,const ssize_t,const size_t,const size_t,NexusInfo *,
     ExceptionInfo *),
   *GetVirtualPixelsNexus(const Cache,NexusInfo *);
 
diff --git a/magick/color.h b/magick/color.h
index 3fdab0e..8855593 100644
--- a/magick/color.h
+++ b/magick/color.h
@@ -78,7 +78,8 @@
   ColorComponentGenesis(void),
   IsColorSimilar(const Image *,const PixelPacket *,const PixelPacket *),
   IsGrayImage(const Image *,ExceptionInfo *),
-  IsImageSimilar(const Image *,const Image *,ssize_t *x,ssize_t *y,ExceptionInfo *),
+  IsImageSimilar(const Image *,const Image *,ssize_t *x,ssize_t *y,
+    ExceptionInfo *),
   IsMagickColorSimilar(const MagickPixelPacket *,const MagickPixelPacket *),
   IsMonochromeImage(const Image *,ExceptionInfo *),
   IsOpacitySimilar(const Image *,const PixelPacket *,const PixelPacket *),
diff --git a/magick/constitute.h b/magick/constitute.h
index eb37b05..bbaca0e 100644
--- a/magick/constitute.h
+++ b/magick/constitute.h
@@ -35,8 +35,8 @@
 } StorageType;
 
 extern MagickExport Image
-  *ConstituteImage(const size_t,const size_t,const char *,
-    const StorageType,const void *,ExceptionInfo *),
+  *ConstituteImage(const size_t,const size_t,const char *,const StorageType,
+    const void *,ExceptionInfo *),
   *PingImage(const ImageInfo *,ExceptionInfo *),
   *PingImages(const ImageInfo *,ExceptionInfo *),
   *ReadImage(const ImageInfo *,ExceptionInfo *),
diff --git a/magick/deprecate.h b/magick/deprecate.h
index d5bc2ea..de817ba 100644
--- a/magick/deprecate.h
+++ b/magick/deprecate.h
@@ -85,6 +85,10 @@
     *next;  /* deprecated */
 } ImageAttribute;
 
+extern MagickExport CacheView
+  *CloseCacheView(CacheView *) magick_attribute((deprecated)),
+  *OpenCacheView(const Image *) magick_attribute((deprecated));
+
 extern MagickExport char
   *AllocateString(const char *) magick_attribute((deprecated)),
   *InterpretImageAttributes(const ImageInfo *,Image *,const char *)
@@ -93,11 +97,6 @@
   *TranslateText(const ImageInfo *,Image *,const char *)
      magick_attribute((deprecated));
 
-extern MagickExport Image
-  *AverageImages(const Image *,ExceptionInfo *),
-  *MaximumImages(const Image *,ExceptionInfo *),
-  *MinimumImages(const Image *,ExceptionInfo *);
-
 extern MagickExport const ImageAttribute
   *GetImageAttribute(const Image *,const char *),
   *GetImageClippingPathAttribute(Image *) magick_attribute((deprecated)),
@@ -117,6 +116,7 @@
 
 extern MagickExport Image
   *AllocateImage(const ImageInfo *) magick_attribute((deprecated)),
+  *AverageImages(const Image *,ExceptionInfo *),
   *ExtractSubimageFromImage(Image *,const Image *,ExceptionInfo *)
     magick_attribute((deprecated)),
   *GetImageFromMagickRegistry(const char *,ssize_t *id,ExceptionInfo *)
@@ -126,10 +126,12 @@
   *GetNextImage(const Image *) magick_attribute((deprecated)),
   *GetPreviousImage(const Image *) magick_attribute((deprecated)),
   *FlattenImages(Image *,ExceptionInfo *) magick_attribute((deprecated)),
+  *MaximumImages(const Image *,ExceptionInfo *),
+  *MinimumImages(const Image *,ExceptionInfo *),
   *MosaicImages(Image *,ExceptionInfo *) magick_attribute((deprecated)),
   *PopImageList(Image **) magick_attribute((deprecated)),
-  *RecolorImage(const Image *,const size_t,const double *,
-    ExceptionInfo *) magick_attribute((deprecated)),
+  *RecolorImage(const Image *,const size_t,const double *,ExceptionInfo *)
+    magick_attribute((deprecated)),
   *ShiftImageList(Image **) magick_attribute((deprecated)),
   *SpliceImageList(Image *,const ssize_t,const size_t,const Image *,
     ExceptionInfo *) magick_attribute((deprecated));
@@ -137,14 +139,13 @@
 extern MagickExport IndexPacket
   *GetCacheViewIndexes(CacheView *) magick_attribute((deprecated)),
   *GetIndexes(const Image *) magick_attribute((deprecated)),
-  ValidateColormapIndex(Image *,const size_t)
-    magick_attribute((deprecated));
+  ValidateColormapIndex(Image *,const size_t) magick_attribute((deprecated));
 
 extern MagickExport int
   GetImageGeometry(Image *,const char *,const unsigned int,RectangleInfo *)
     magick_attribute((deprecated)),
-  ParseImageGeometry(const char *,ssize_t *,ssize_t *,size_t *,
-    size_t *) magick_attribute((deprecated));
+  ParseImageGeometry(const char *,ssize_t *,ssize_t *,size_t *,size_t *)
+    magick_attribute((deprecated));
 
 extern MagickExport ssize_t
   GetImageListIndex(const Image *) magick_attribute((deprecated)),
@@ -212,8 +213,8 @@
     magick_attribute((deprecated));
 
 extern MagickExport MagickPixelPacket
-  AcquireOneMagickPixel(const Image *,const ssize_t,const ssize_t,ExceptionInfo *)
-    magick_attribute((deprecated));
+  AcquireOneMagickPixel(const Image *,const ssize_t,const ssize_t,
+    ExceptionInfo *) magick_attribute((deprecated));
 
 extern MagickExport MonitorHandler
   GetMonitorHandler(void) magick_attribute((deprecated)),
@@ -241,7 +242,8 @@
     const size_t) magick_attribute((deprecated)),
   *GetImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
     const size_t) magick_attribute((deprecated)),
-  GetOnePixel(Image *,const ssize_t,const ssize_t) magick_attribute((deprecated)),
+  GetOnePixel(Image *,const ssize_t,const ssize_t)
+    magick_attribute((deprecated)),
   *GetPixels(const Image *) magick_attribute((deprecated)),
   *SetCacheViewPixels(CacheView *,const ssize_t,const ssize_t,const size_t,
     const size_t) magick_attribute((deprecated)),
@@ -249,6 +251,7 @@
     const size_t) magick_attribute((deprecated));
 
 extern MagickExport size_t
+  GetImageListSize(const Image *) magick_attribute((deprecated)),
   PopImagePixels(Image *,const QuantumType,unsigned char *)
     magick_attribute((deprecated)),
   PushImagePixels(Image *,const QuantumType,const unsigned char *)
@@ -280,13 +283,6 @@
   UnshiftImageList(Image **,const Image *,ExceptionInfo *)
     magick_attribute((deprecated));
 
-extern MagickExport size_t
-  GetImageListSize(const Image *) magick_attribute((deprecated));
-
-extern MagickExport CacheView
-  *CloseCacheView(CacheView *) magick_attribute((deprecated)),
-  *OpenCacheView(const Image *) magick_attribute((deprecated));
-
 extern MagickExport void
   *AcquireMemory(const size_t) magick_attribute((deprecated)),
   AllocateNextImage(const ImageInfo *,Image *) magick_attribute((deprecated)),
diff --git a/magick/display-private.h b/magick/display-private.h
index c125ec1..6ac18ff 100644
--- a/magick/display-private.h
+++ b/magick/display-private.h
@@ -26,8 +26,7 @@
 #include "magick/xwindow-private.h"
 
 extern MagickExport Image
-  *XDisplayImage(Display *,XResourceInfo *,char **,int,Image **,
-    size_t *);
+  *XDisplayImage(Display *,XResourceInfo *,char **,int,Image **,size_t *);
 
 extern MagickExport MagickBooleanType XDisplayBackgroundImage(Display *,
   XResourceInfo *,Image *);
diff --git a/magick/effect.h b/magick/effect.h
index e6f6833..fc02d9d 100644
--- a/magick/effect.h
+++ b/magick/effect.h
@@ -69,8 +69,7 @@
   *BlurImage(const Image *,const double,const double,ExceptionInfo *),
   *BlurImageChannel(const Image *,const ChannelType,const double,const double,
     ExceptionInfo *),
-  *ConvolveImage(const Image *,const size_t,const double *,
-    ExceptionInfo *),
+  *ConvolveImage(const Image *,const size_t,const double *,ExceptionInfo *),
   *ConvolveImageChannel(const Image *,const ChannelType,const size_t,
     const double *,ExceptionInfo *),
   *DespeckleImage(const Image *,ExceptionInfo *),
diff --git a/magick/exception.h b/magick/exception.h
index d3b3275..0f6adf4 100644
--- a/magick/exception.h
+++ b/magick/exception.h
@@ -152,8 +152,8 @@
 extern MagickExport MagickBooleanType
   ThrowException(ExceptionInfo *,const ExceptionType,const char *,
     const char *),
-  ThrowMagickException(ExceptionInfo *,const char *,const char *,
-    const size_t,const ExceptionType,const char *,const char *,...)
+  ThrowMagickException(ExceptionInfo *,const char *,const char *,const size_t,
+    const ExceptionType,const char *,const char *,...)
     magick_attribute((format (printf,7,8))),
   ThrowMagickExceptionList(ExceptionInfo *,const char *,const char *,
     const size_t,const ExceptionType,const char *,const char *,va_list)
diff --git a/magick/fx-private.h b/magick/fx-private.h
index 5f8577a..ba70155 100644
--- a/magick/fx-private.h
+++ b/magick/fx-private.h
@@ -31,8 +31,8 @@
 
 extern MagickExport MagickBooleanType
   FxEvaluateExpression(FxInfo *,MagickRealType *,ExceptionInfo *),
-  FxEvaluateChannelExpression(FxInfo *,const ChannelType,const ssize_t,const ssize_t,
-    MagickRealType *,ExceptionInfo *);
+  FxEvaluateChannelExpression(FxInfo *,const ChannelType,const ssize_t,
+   const ssize_t,MagickRealType *,ExceptionInfo *);
 
 #if defined(__cplusplus) || defined(c_plusplus)
 }
diff --git a/magick/fx.h b/magick/fx.h
index 1d7b224..7ac4127 100644
--- a/magick/fx.h
+++ b/magick/fx.h
@@ -50,8 +50,8 @@
   *MorphImages(const Image *,const size_t,ExceptionInfo *),
   *PolaroidImage(const Image *,const DrawInfo *,const double,ExceptionInfo *),
   *SepiaToneImage(const Image *,const double,ExceptionInfo *),
-  *ShadowImage(const Image *,const double,const double,const ssize_t,const ssize_t,
-    ExceptionInfo *),
+  *ShadowImage(const Image *,const double,const double,const ssize_t,
+    const ssize_t,ExceptionInfo *),
   *SketchImage(const Image *,const double,const double,const double,
     ExceptionInfo *),
   *SteganoImage(const Image *,const Image *,ExceptionInfo *),
diff --git a/magick/hashmap.h b/magick/hashmap.h
index 84812e5..296def6 100644
--- a/magick/hashmap.h
+++ b/magick/hashmap.h
@@ -35,9 +35,8 @@
 
 extern MagickExport HashmapInfo
   *DestroyHashmap(HashmapInfo *),
-  *NewHashmap(const size_t,size_t (*)(const void *),
-    MagickBooleanType (*)(const void *,const void *),void *(*)(void *),
-    void *(*)(void *));
+  *NewHashmap(const size_t,size_t (*)(const void *),MagickBooleanType (*)
+    (const void *,const void *),void *(*)(void *),void *(*)(void *));
 
 extern MagickExport LinkedListInfo
   *DestroyLinkedList(LinkedListInfo *,void *(*)(void *)),
@@ -56,14 +55,12 @@
   PutEntryInHashmap(HashmapInfo *,const void *,const void *);
 
 extern MagickExport size_t
+  GetNumberOfElementsInLinkedList(const LinkedListInfo *),
+  GetNumberOfEntriesInHashmap(const HashmapInfo *),
   HashPointerType(const void *),
   HashStringType(const void *),
   HashStringInfoType(const void *);
 
-extern MagickExport size_t
-  GetNumberOfElementsInLinkedList(const LinkedListInfo *),
-  GetNumberOfEntriesInHashmap(const HashmapInfo *);
-
 extern MagickExport void
   ClearLinkedList(LinkedListInfo *,void *(*)(void *)),
   *GetLastValueInLinkedList(LinkedListInfo *),
diff --git a/magick/image-private.h b/magick/image-private.h
index 463aef8..42a44a8 100644
--- a/magick/image-private.h
+++ b/magick/image-private.h
@@ -60,24 +60,24 @@
   return(180.0*radians/MagickPI);
 }
 
-static inline unsigned char ScaleColor5to8(const size_t color)
+static inline unsigned char ScaleColor5to8(const unsigned int color)
 {
   return((unsigned char) (((color) << 3) | ((color) >> 2)));
 }
 
-static inline unsigned char ScaleColor6to8(const size_t color)
+static inline unsigned char ScaleColor6to8(const unsigned int color)
 {
   return((unsigned char) (((color) << 2) | ((color) >> 4)));
 }
 
-static inline size_t ScaleColor8to5(const unsigned char color)
+static inline unsigned int ScaleColor8to5(const unsigned char color)
 {
-  return((size_t) (((color) & ~0x07) >> 3));
+  return((unsigned int) (((color) & ~0x07) >> 3));
 }
 
-static inline size_t ScaleColor8to6(const unsigned char color)
+static inline unsigned int ScaleColor8to6(const unsigned char color)
 {
-  return((size_t) (((color) & ~0x03) >> 2));
+  return((unsigned int) (((color) & ~0x03) >> 2));
 }
 
 #if defined(__cplusplus) || defined(c_plusplus)
diff --git a/magick/image.h b/magick/image.h
index 444efd2..9f77bf1 100644
--- a/magick/image.h
+++ b/magick/image.h
@@ -490,8 +490,8 @@
 extern MagickExport Image
   *AcquireImage(const ImageInfo *),
   *AppendImages(const Image *,const MagickBooleanType,ExceptionInfo *),
-  *CloneImage(const Image *,const size_t,const size_t,
-    const MagickBooleanType,ExceptionInfo *),
+  *CloneImage(const Image *,const size_t,const size_t,const MagickBooleanType,
+    ExceptionInfo *),
   *CombineImages(const Image *,const ChannelType,ExceptionInfo *),
   *DestroyImage(Image *),
   *GetImageClipMask(const Image *,ExceptionInfo *),
@@ -506,9 +506,6 @@
   *CloneImageInfo(const ImageInfo *),
   *DestroyImageInfo(ImageInfo *);
 
-extern MagickExport ssize_t
-  GetImageReferenceCount(Image *);
-
 extern MagickExport MagickBooleanType
   ClipImage(Image *),
   ClipImagePath(Image *,const char *,const MagickBooleanType),
@@ -539,6 +536,9 @@
 extern MagickExport size_t
   InterpretImageFilename(const ImageInfo *,Image *,const char *,int,char *);
 
+extern MagickExport ssize_t
+  GetImageReferenceCount(Image *);
+
 extern MagickExport VirtualPixelMethod
   GetImageVirtualPixelMethod(const Image *),
   SetImageVirtualPixelMethod(const Image *,const VirtualPixelMethod);
diff --git a/magick/layer.h b/magick/layer.h
index 9f54928..d416bdb 100644
--- a/magick/layer.h
+++ b/magick/layer.h
@@ -62,8 +62,8 @@
   *OptimizePlusImageLayers(const Image *,ExceptionInfo *);
 
 extern MagickExport void
-  CompositeLayers(Image *,const CompositeOperator,Image *,const ssize_t,const ssize_t,
-    ExceptionInfo *),
+  CompositeLayers(Image *,const CompositeOperator,Image *,const ssize_t,
+    const ssize_t,ExceptionInfo *),
   OptimizeImageTransparency(const Image *,ExceptionInfo *),
   RemoveDuplicateLayers(Image **,ExceptionInfo *),
   RemoveZeroDelayLayers(Image **,ExceptionInfo *);
diff --git a/magick/list.h b/magick/list.h
index 8134a3e..aaac0d9 100644
--- a/magick/list.h
+++ b/magick/list.h
@@ -40,12 +40,12 @@
   *SplitImageList(Image *),
   *SyncNextImageInList(const Image *);
 
-extern MagickExport ssize_t
-  GetImageIndexInList(const Image *);
-
 extern MagickExport size_t
   GetImageListLength(const Image *);
 
+extern MagickExport ssize_t
+  GetImageIndexInList(const Image *);
+
 extern MagickExport void
   AppendImageToList(Image **,const Image *),
   DeleteImageFromList(Image **),
diff --git a/magick/log.h b/magick/log.h
index c3aab0b..a47c55f 100644
--- a/magick/log.h
+++ b/magick/log.h
@@ -75,12 +75,11 @@
   IsEventLogging(void),
   ListLogInfo(FILE *,ExceptionInfo *),
   LogComponentGenesis(void),
-  LogMagickEvent(const LogEventType,const char *,const char *,
-    const size_t,const char *,...) 
+  LogMagickEvent(const LogEventType,const char *,const char *,const size_t,
+    const char *,...) 
     magick_attribute((format (printf,5,6))),
-  LogMagickEventList(const LogEventType,const char *,const char *,
-    const size_t,const char *,va_list)
-    magick_attribute((format (printf,5,0)));
+  LogMagickEventList(const LogEventType,const char *,const char *,const size_t,
+    const char *,va_list) magick_attribute((format (printf,5,0)));
 
 extern MagickExport void
   CloseMagickLog(void),
diff --git a/magick/mac.h b/magick/mac.h
index 8f92bfc..f851020 100644
--- a/magick/mac.h
+++ b/magick/mac.h
@@ -43,7 +43,7 @@
   int
     d_VRefNum;
 
-  ssize_t int
+  long
     d_DirID;
 
   int
@@ -93,14 +93,14 @@
 extern MagickExport DIR
   *opendir(const char *);
 
-extern MagickExport ssize_t
+extern MagickExport long
   telldir(DIR *);
 
 extern MagickExport struct dirent
   *readdir(DIR *);
 
 extern MagickExport void
-  seekdir(DIR *,ssize_t),
+  seekdir(DIR *,long
   closedir(DIR *);
 #endif
 
diff --git a/magick/magick-config.h b/magick/magick-config.h
index bf4fdb8..699410c 100644
--- a/magick/magick-config.h
+++ b/magick/magick-config.h
@@ -9,10 +9,14 @@
 /* #undef AC_APPLE_UNIVERSAL_BUILD */
 
 /* Define if you have AUTOTRACE library */
-/* #undef AUTOTRACE_DELEGATE */
+#ifndef MAGICKCORE_AUTOTRACE_DELEGATE
+#define MAGICKCORE_AUTOTRACE_DELEGATE 1
+#endif
 
 /* Define if coders and filters are to be built as modules. */
-/* #undef BUILD_MODULES */
+#ifndef MAGICKCORE_BUILD_MODULES
+#define MAGICKCORE_BUILD_MODULES 1
+#endif
 
 /* Define if you have the bzip2 library */
 #ifndef MAGICKCORE_BZLIB_DELEGATE
@@ -109,7 +113,9 @@
 /* #undef GS_DELEGATE */
 
 /* Define if you have GVC library */
-/* #undef GVC_DELEGATE */
+#ifndef MAGICKCORE_GVC_DELEGATE
+#define MAGICKCORE_GVC_DELEGATE 1
+#endif
 
 /* Define to 1 if you have the `argz_add' function. */
 #ifndef MAGICKCORE_HAVE_ARGZ_ADD
@@ -190,7 +196,9 @@
 #endif
 
 /* Define to 1 if you have the <CL/cl.h> header file. */
-/* #undef HAVE_CL_CL_H */
+#ifndef MAGICKCORE_HAVE_CL_CL_H
+#define MAGICKCORE_HAVE_CL_CL_H 1
+#endif
 
 /* Define to 1 if you have the <complex.h> header file. */
 #ifndef MAGICKCORE_HAVE_COMPLEX_H
@@ -1026,7 +1034,9 @@
 #endif
 
 /* Define if you have JBIG library */
-/* #undef JBIG_DELEGATE */
+#ifndef MAGICKCORE_JBIG_DELEGATE
+#define MAGICKCORE_JBIG_DELEGATE 1
+#endif
 
 /* Define if you have JPEG version 2 "Jasper" library */
 #ifndef MAGICKCORE_JP2_DELEGATE
@@ -1055,7 +1065,9 @@
 #endif
 
 /* Define if you have LQR library */
-/* #undef LQR_DELEGATE */
+#ifndef MAGICKCORE_LQR_DELEGATE
+#define MAGICKCORE_LQR_DELEGATE 1
+#endif
 
 /* Define if using libltdl to support dynamically loadable modules */
 #ifndef MAGICKCORE_LTDL_DELEGATE
@@ -1067,7 +1079,7 @@
 
 /* Define to the system default library search path. */
 #ifndef MAGICKCORE_LT_DLSEARCH_PATH
-#define MAGICKCORE_LT_DLSEARCH_PATH "/lib64:/usr/lib64:/lib:/usr/lib:/usr/lib64/alliance/lib:/usr/lib64/atlas:/usr/lib64/kicad:/usr/lib64/llvm:/usr/lib64/mysql:/usr/lib64/octave-3.2.4:/usr/lib64/openmotif:/usr/lib64/qt-3.3/lib:/usr/lib64/tcl8.5/tclx8.4:/usr/lib64/tcl8.5:/usr/lib64/wine/:/usr/lib64/xulrunner-1.9.2"
+#define MAGICKCORE_LT_DLSEARCH_PATH "/lib64:/usr/lib64:/lib:/usr/lib:/usr/lib64/alliance/lib:/usr/lib64/atlas:/usr/lib64/kicad:/usr/lib64/llvm:/usr/local/lib:/usr/lib64/mysql:/usr/lib64/octave-3.2.4:/usr/lib64/qt-3.3/lib:/usr/lib64/tcl8.5/tclx8.4:/usr/lib64/tcl8.5:/usr/lib/wine/:/usr/lib64/wine/:/usr/lib64/xulrunner-1.9.2"
 #endif
 
 /* The archive extension */
@@ -1108,7 +1120,9 @@
 /* #undef NO_MINUS_C_MINUS_O */
 
 /* Define if you have OPENEXR library */
-/* #undef OPENEXR_DELEGATE */
+#ifndef MAGICKCORE_OPENEXR_DELEGATE
+#define MAGICKCORE_OPENEXR_DELEGATE 1
+#endif
 
 /* Define to the address where bug reports for this package should be sent. */
 #ifndef MAGICKCORE_PACKAGE_BUGREPORT
@@ -1360,7 +1374,9 @@
 /* #undef _MINIX */
 
 /* Define this for the OpenCL Accelerator */
-/* #undef _OPENCL */
+#ifndef MAGICKCORE__OPENCL
+#define MAGICKCORE__OPENCL 1
+#endif
 
 /* Define to 2 if the system does not provide POSIX.1 features except with
    this defined. */
diff --git a/magick/magick-type.h b/magick/magick-type.h
index a50d77e..fe9f677 100644
--- a/magick/magick-type.h
+++ b/magick/magick-type.h
@@ -91,7 +91,7 @@
 #define MaxMap  65535UL
 
 #define MAGICKCORE_HDRI_SUPPORT  1
-typedef ssize_t double MagickRealType;
+typedef long double MagickRealType;
 typedef double Quantum;
 #define QuantumRange  18446744073709551615.0
 #define QuantumFormat  "%g"
diff --git a/magick/matrix.h b/magick/matrix.h
index 51917b1..4d101c2 100644
--- a/magick/matrix.h
+++ b/magick/matrix.h
@@ -27,12 +27,11 @@
   **RelinquishMagickMatrix(double **,const size_t);
 
 extern MagickExport MagickBooleanType
-  GaussJordanElimination(double **,double **,const size_t,
-       const size_t);
+  GaussJordanElimination(double **,double **,const size_t,const size_t);
 
 extern MagickExport void
   LeastSquaresAddTerms(double **,double **,const double *,const double *,
-       const size_t, const size_t);
+    const size_t, const size_t);
 
 #if defined(__cplusplus) || defined(c_plusplus)
 }
diff --git a/magick/morphology-private.h b/magick/morphology-private.h
index e7f98e5..0072c7f 100644
--- a/magick/morphology-private.h
+++ b/magick/morphology-private.h
@@ -30,7 +30,7 @@
 
 extern MagickExport Image
   *MorphologyApply(const Image *,const ChannelType,const MorphologyMethod,
-    const ssize_t, const KernelInfo *, const CompositeOperator, const double,
+    const ssize_t,const KernelInfo *,const CompositeOperator,const double,
     ExceptionInfo *);
 
 extern MagickExport void
diff --git a/magick/option.h b/magick/option.h
index 3ccbc90..847c3b1 100644
--- a/magick/option.h
+++ b/magick/option.h
@@ -131,10 +131,6 @@
   *GetImageOption(const ImageInfo *,const char *),
   *MagickOptionToMnemonic(const MagickOption,const ssize_t);
 
-extern MagickExport ssize_t
-  ParseChannelOption(const char *),
-  ParseMagickOption(const MagickOption,const MagickBooleanType,const char *);
-
 extern MagickExport MagickBooleanType
   CloneImageOptions(ImageInfo *,const ImageInfo *),
   DefineImageOption(ImageInfo *,const char *),
@@ -143,6 +139,10 @@
   ListMagickOptions(FILE *,const MagickOption,ExceptionInfo *),
   SetImageOption(ImageInfo *,const char *,const char *);
 
+extern MagickExport ssize_t
+  ParseChannelOption(const char *),
+  ParseMagickOption(const MagickOption,const MagickBooleanType,const char *);
+
 extern MagickExport void
   DestroyImageOptions(ImageInfo *),
   ResetImageOptions(const ImageInfo *),
diff --git a/magick/paint.h b/magick/paint.h
index e4ca457..3675c08 100644
--- a/magick/paint.h
+++ b/magick/paint.h
@@ -30,7 +30,8 @@
 
 extern MagickExport MagickBooleanType
   FloodfillPaintImage(Image *,const ChannelType,const DrawInfo *,
-    const MagickPixelPacket *,const ssize_t,const ssize_t,const MagickBooleanType),
+    const MagickPixelPacket *,const ssize_t,const ssize_t,
+    const MagickBooleanType),
   GradientImage(Image *,const GradientType,const SpreadMethod,
     const PixelPacket *,const PixelPacket *),
   OpaquePaintImage(Image *,const MagickPixelPacket *,const MagickPixelPacket *,
diff --git a/magick/resize.h b/magick/resize.h
index 759cd1a..8e1bc25 100644
--- a/magick/resize.h
+++ b/magick/resize.h
@@ -23,24 +23,19 @@
 #endif
 
 extern MagickExport Image
-  *AdaptiveResizeImage(const Image *,const size_t,const size_t,
-    ExceptionInfo *),
-  *LiquidRescaleImage(const Image *,const size_t,const size_t,
-    const double,const double,ExceptionInfo *),
+  *AdaptiveResizeImage(const Image *,const size_t,const size_t,ExceptionInfo *),
+  *LiquidRescaleImage(const Image *,const size_t,const size_t,const double,
+    const double,ExceptionInfo *),
   *MagnifyImage(const Image *,ExceptionInfo *),
   *MinifyImage(const Image *,ExceptionInfo *),
   *ResampleImage(const Image *,const double,const double,const FilterTypes,
     const double,ExceptionInfo *),
-  *ResizeImage(const Image *,const size_t,const size_t,
-    const FilterTypes,const double,ExceptionInfo *),
-  *SampleImage(const Image *,const size_t,const size_t,
-    ExceptionInfo *),
-  *ScaleImage(const Image *,const size_t,const size_t,
-    ExceptionInfo *),
-  *ThumbnailImage(const Image *,const size_t,const size_t,
-    ExceptionInfo *),
-  *ZoomImage(const Image *,const size_t,const size_t,
-    ExceptionInfo *);
+  *ResizeImage(const Image *,const size_t,const size_t,const FilterTypes,
+    const double,ExceptionInfo *),
+  *SampleImage(const Image *,const size_t,const size_t,ExceptionInfo *),
+  *ScaleImage(const Image *,const size_t,const size_t,ExceptionInfo *),
+  *ThumbnailImage(const Image *,const size_t,const size_t,ExceptionInfo *),
+  *ZoomImage(const Image *,const size_t,const size_t,ExceptionInfo *);
 
 #if defined(__cplusplus) || defined(c_plusplus)
 }
diff --git a/magick/statistic.h b/magick/statistic.h
index 2aea0ae..3e0d617 100644
--- a/magick/statistic.h
+++ b/magick/statistic.h
@@ -91,16 +91,15 @@
     ExceptionInfo *),
   FunctionImageChannel(Image *,const ChannelType,const MagickFunction,
     const size_t,const double *,ExceptionInfo *),
-  GetImageChannelExtrema(const Image *,const ChannelType,size_t *,
-    size_t *,ExceptionInfo *),
+  GetImageChannelExtrema(const Image *,const ChannelType,size_t *,size_t *,
+    ExceptionInfo *),
   GetImageChannelMean(const Image *,const ChannelType,double *,double *,
     ExceptionInfo *),
   GetImageChannelKurtosis(const Image *,const ChannelType,double *,double *,
     ExceptionInfo *),
   GetImageChannelRange(const Image *,const ChannelType,double *,double *,
     ExceptionInfo *),
-  GetImageExtrema(const Image *,size_t *,size_t *,
-    ExceptionInfo *),
+  GetImageExtrema(const Image *,size_t *,size_t *,ExceptionInfo *),
   GetImageRange(const Image *,double *,double *,ExceptionInfo *),
   GetImageMean(const Image *,double *,double *,ExceptionInfo *),
   GetImageKurtosis(const Image *,double *,double *,ExceptionInfo *);
diff --git a/magick/string-private.h b/magick/string-private.h
index 9dbd4e5..6f92374 100644
--- a/magick/string-private.h
+++ b/magick/string-private.h
@@ -68,7 +68,7 @@
 
 static inline size_t StringToUnsignedLong(const char *value)
 {
-  return(strtoul(value,(char **) NULL,10));
+  return((size_t) strtoul(value,(char **) NULL,10));
 }
 
 #if defined(__cplusplus) || defined(c_plusplus)
diff --git a/magick/string_.h b/magick/string_.h
index df0b780..a43f850 100644
--- a/magick/string_.h
+++ b/magick/string_.h
@@ -35,9 +35,7 @@
     *datum;
 
   size_t
-    length;
-
-  size_t
+    length,
     signature;
 } StringInfo;
 
@@ -64,14 +62,6 @@
   LocaleCompare(const char *,const char *),
   LocaleNCompare(const char *,const char *,const size_t);
 
-extern MagickExport ssize_t
-  FormatMagickSize(const MagickSizeType,const MagickBooleanType,char *),
-  FormatMagickString(char *,const size_t,const char *,...)
-    magick_attribute((format (printf,3,4))),
-  FormatMagickStringList(char *,const size_t,const char *,va_list)
-    magick_attribute((format (printf,3,0))),
-  FormatMagickTime(const time_t,const size_t,char *);
-
 extern MagickExport MagickBooleanType
   ConcatenateString(char **,const char *),
   SubstituteString(char **,const char *,const char *);
@@ -83,6 +73,14 @@
     magick_attribute((nonnull)),
   GetStringInfoLength(const StringInfo *);
 
+extern MagickExport ssize_t
+  FormatMagickSize(const MagickSizeType,const MagickBooleanType,char *),
+  FormatMagickString(char *,const size_t,const char *,...)
+    magick_attribute((format (printf,3,4))),
+  FormatMagickStringList(char *,const size_t,const char *,va_list)
+    magick_attribute((format (printf,3,0))),
+  FormatMagickTime(const time_t,const size_t,char *);
+
 extern MagickExport StringInfo
   *AcquireStringInfo(const size_t),
   *CloneStringInfo(const StringInfo *),
diff --git a/magick/threshold.h b/magick/threshold.h
index 6719480..fd0b32b 100644
--- a/magick/threshold.h
+++ b/magick/threshold.h
@@ -26,8 +26,8 @@
   ThresholdMap;
 
 extern MagickExport Image
-  *AdaptiveThresholdImage(const Image *,const size_t,const size_t,
-    const ssize_t,ExceptionInfo *);
+  *AdaptiveThresholdImage(const Image *,const size_t,const size_t,const ssize_t,
+    ExceptionInfo *);
 
 extern MagickExport ThresholdMap
   *DestroyThresholdMap(ThresholdMap *),
diff --git a/magick/token-private.h b/magick/token-private.h
index 67cfb73..b3c15d5 100644
--- a/magick/token-private.h
+++ b/magick/token-private.h
@@ -30,7 +30,7 @@
 
 typedef struct
 {
-  ssize_t
+  int
     code_mask,
     code_value,
     utf_mask,
@@ -89,15 +89,15 @@
   return(utf8);
 }
 
-static inline ssize_t GetNextUTFCode(const char *text,size_t *octets)
+static inline int GetNextUTFCode(const char *text,unsigned int *octets)
 {
-  ssize_t
+  int
     code;
 
   register ssize_t
     i;
 
-  register ssize_t
+  register int
     c,
     unicode;
 
@@ -107,7 +107,7 @@
       errno=EINVAL;
       return(-1);
     }
-  code=(ssize_t) (*text++) & 0xff;
+  code=(int) (*text++) & 0xff;
   unicode=code;
   for (i=0; i < MaxMultibyteCodes; i++)
   {
@@ -119,10 +119,10 @@
             errno=EILSEQ;
             return(-1);
           }
-        *octets=(size_t) (i+1);
+        *octets=(unsigned int) (i+1);
         return(unicode);
       }
-    c=(ssize_t) (*text++ ^ 0x80) & 0xff;
+    c=(int) (*text++ ^ 0x80) & 0xff;
     if ((c & 0xc0) != 0)
       {
         errno=EILSEQ;
@@ -134,24 +134,24 @@
   return(-1);
 }
 
-static inline ssize_t GetUTFCode(const char *text)
+static inline int GetUTFCode(const char *text)
 {
-  size_t
+  unsigned int
     octets;
 
   return(GetNextUTFCode(text,&octets));
 }
 
-static inline size_t GetUTFOctets(const char *text)
+static inline unsigned int GetUTFOctets(const char *text)
 {
-  size_t
+  unsigned int
     octets;
 
   (void) GetNextUTFCode(text,&octets);
   return(octets);
 }
 
-static inline MagickBooleanType IsUTFSpace(ssize_t code)
+static inline MagickBooleanType IsUTFSpace(int code)
 {
   if (((code >= 0x0009) && (code <= 0x000d)) || (code == 0x0020) ||
       (code == 0x0085) || (code == 0x00a0) || (code == 0x1680) ||
@@ -162,24 +162,24 @@
   return(MagickFalse);
 }
 
-static inline MagickBooleanType IsUTFValid(ssize_t code)
+static inline MagickBooleanType IsUTFValid(int code)
 {
-  ssize_t
+  int
     mask;
 
-  mask=(ssize_t) 0x7fffffff;
+  mask=(int) 0x7fffffff;
   if (((code & ~mask) != 0) && ((code < 0xd800) || (code > 0xdfff)) &&
       (code != 0xfffe) && (code != 0xffff))
     return(MagickFalse);
   return(MagickTrue);
 }
 
-static inline MagickBooleanType IsUTFAscii(ssize_t code)
+static inline MagickBooleanType IsUTFAscii(int code)
 {
-  ssize_t
+  int
     mask;
 
-  mask=(ssize_t) 0x7f;
+  mask=(int) 0x7f;
   if ((code & ~mask) != 0)
     return(MagickFalse);
   return(MagickTrue);
diff --git a/magick/utility.h b/magick/utility.h
index 2503137..619628c 100644
--- a/magick/utility.h
+++ b/magick/utility.h
@@ -47,9 +47,6 @@
   SystemCommand(const MagickBooleanType,const MagickBooleanType,const char *,
     ExceptionInfo *);
 
-extern MagickExport ssize_t
-  GetMagickPageSize(void);
-
 extern MagickExport MagickBooleanType
   AcquireUniqueFilename(char *),
   AcquireUniqueSymbolicLink(const char *,char *),
@@ -59,12 +56,15 @@
   IsMagickTrue(const char *),
   IsPathAccessible(const char *);
 
-extern MagickExport unsigned char
-  *Base64Decode(const char *, size_t *);
-
 extern MagickExport size_t
   MultilineCensus(const char *);
 
+extern MagickExport ssize_t
+  GetMagickPageSize(void);
+
+extern MagickExport unsigned char
+  *Base64Decode(const char *, size_t *);
+
 extern MagickExport void
   AppendImageFormat(const char *,char *),
   ChopPathComponents(char *,const size_t),
diff --git a/magick/version.h b/magick/version.h
index 8bea494..8c39f3c 100644
--- a/magick/version.h
+++ b/magick/version.h
@@ -33,8 +33,8 @@
 #define MagickLibAddendum  "-1"
 #define MagickLibInterface  3
 #define MagickLibMinInterface  3
-#define MagickReleaseDate  "2010-05-29"
-#define MagickChangeDate   "20100525"
+#define MagickReleaseDate  "2010-05-30"
+#define MagickChangeDate   "20100528"
 #define MagickAuthoritativeURL  "http://www.imagemagick.org"
 #define MagickHomeURL  "file:///usr/local/share/doc/ImageMagick-6.6.2/index.html"
 #if (MAGICKCORE_QUANTUM_DEPTH == 8)
diff --git a/magick/vms.h b/magick/vms.h
index f8cf037..bd24a5f 100644
--- a/magick/vms.h
+++ b/magick/vms.h
@@ -949,7 +949,7 @@
 
 typedef struct _dirdesc
 {
-  ssize_t
+  long
     context;
 
   char