lifthrasiir / j40

J40: Independent, self-contained JPEG XL decoder
Other
231 stars 3 forks source link

Fixed following MSVC warning/errors when compiled as C source: #6

Closed r-lyeh closed 2 years ago

r-lyeh commented 2 years ago
r-lyeh commented 2 years ago

Feel free to discard completely and/or cherry-pick fixes from this. Amazing project btw!

lifthrasiir commented 2 years ago

Thank you for PR. It took a while because I had to make the build system fully support Windows (please tell me whether make works out of the box or not!). I incorporated your changes as 501f733e231e0248e72e1068ec08fc11f5045b44 except for _lzcnt_u32/64, which is a machine intrinsic and should not be used in a portable code and I rewrote that part in 095f4a3afc36de39db7dfdb751c6a2e086be3388.