diff --git a/imagick/channel_statistics.go b/imagick/channel_statistics.go index cb73e21..a0edfe7 100644 --- a/imagick/channel_statistics.go +++ b/imagick/channel_statistics.go @@ -13,5 +13,13 @@ import "C" //"unsafe" type ChannelStatistics struct { - cs *C.ChannelStatistics + // TODO: https://github.com/gographics/imagick/issues/301 + // As of ImageMagick 7.1.1-24 they have introduced fields + // of type "long double". This causes a cgo compilation error. + // Disabling this reference for now until the struct is actually + // used somewhere in these bindings. + // When needed, A c-shim type will need to be declared to mirror + // ChannelStatistics with a double instead of long double fields, + // and a helper to convert between. + //cs *C.ChannelStatistics }