WinMerge / freeimage

Unofficial clone of the FreeImage library (http://freeimage.sourceforge.net)
Other
115 stars 49 forks source link

Fix for building FreeImage on MacOS 12 #13

Closed bferguson3 closed 1 year ago

bferguson3 commented 1 year ago

Add the following includes and define to the given sub-source files:

ZLib/gzlib.c +#include

ZLib/gzread.c +#include

ZLib/gzwrite.c +#include

LibJXR/image/decode/segdec.c +#include <libkern/OSByteOrder.h> +#define _byteswap_ulong(x) OSSwapInt32(x) +#define _byteswap_uint64(x) OSSwapInt64(x)

LibJXR/jxrgluelib/JXRGlueJxr.c +#include

sdottaka commented 1 year ago

Thank you for the report.

However, this repository is just a clone, not the FreeImage main repository.

Please submit the patch to https://sourceforge.net/p/freeimage/patches/