Files
PDFPatcher/JBig2/include
Calcitem 6fb0adc53c 将 jbig2dec 的源码还原为原始代码
并改为使用修改工程配置的方法解决编译问题。
目的是后续升级 jbig2dec 时直接使用上游新代码覆盖即可,无需再合并代码。

jbig2dec 原始代码来源为:
https://github.com/ArtifexSoftware/jbig2dec/tree/a5b9b7cd7b9ed349964eb89883c4b22c410b3398

操作步骤:
将 jbig2dec 原始代码中所有的 .h 覆盖到 JBig2/include/ 目录;
将 .c 文件覆盖到 JBig2/src/ 目录;除了 getopt.c 和 getopt1.c 两个多出来的文件未拷贝。
覆盖后这些文件撤销了之前为解决编译问题而修改的代码。

对于 Visual Studio 的编译错误:
Error C4146 unary minus operator applied to unsigned type, result still unsigned
解决方式为,在 Visual Studio 的
jbig2 Property Pages -> Configuration Properties -> C/C++ -> Command Line -> Additional Options
增加 -w24146 来解决。
Release 和 Debug 都增加。
2022-01-14 14:24:47 +08:00
..
2021-12-24 20:35:03 +08:00
2021-12-24 20:35:03 +08:00
2021-12-24 20:35:03 +08:00
2021-12-24 20:35:03 +08:00
2021-12-24 20:35:03 +08:00
2021-12-24 20:35:03 +08:00
2021-12-24 20:35:03 +08:00
2021-12-24 20:35:03 +08:00