#38168: Conflicting declarations in tiff and opencv --------------------------+------------------------ Reporter: karo03de@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: tiff opencv | --------------------------+------------------------ Comment (by frederic.devernay@…): The following fix in CImg.h is the most portable solution. Got the idea from the OpenCV source code: https://github.com/Itseez/opencv/commit/33c26a93c6d97013b14e7dd080a347e242ef... Hopefully, David will include this in the next CImg release. Anyone who wants to include tiff.h or tiffio.h in a portable way should do this. {{{ Index: CImg.h =================================================================== --- CImg.h (révision 12475) +++ CImg.h (copie de travail) @@ -284,7 +284,11 @@ // (see methods 'CImg[List]<T>::{load,save}_tiff()'). #ifdef cimg_use_tiff extern "C" { +#define uint64 uint64_hack_ +#define int64 int64_hack_ #include "tiffio.h" +#undef uint64 +#indef uint64 } #endif }}} -- Ticket URL: <https://trac.macports.org/ticket/38168#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X