                                   (fromIntegral . fromEnum $ dtype) 
                                   (fromIntegral . fromEnum $ maskSize)
                                    nullPtr nullPtr
+#ifdef OpenCV24
                                   (fromIntegral . fromEnum $ CCOMP)
+#endif
+
     return result
+
     -- TODO: Add handling for labels
     -- TODO: Add handling for custom masks

};
#endc
{#enum DistanceType {}#}

#c
enum LabelType {
     CCOMP = CV_DIST_LABEL_CCOMP

};
#endc
{#enum LabelType {}#}
#endif

-- |Mask sizes accepted by distanceTransform
data MaskSize = M3 | M5 deriving (Eq,Ord,Enum,Show)
