mirror of
https://github.com/lz4/lz4.git
synced 2026-10-24 01:48:57 +03:00
C++ forbids including a header within a linkage specification. With clang C++ modules (-fmodules), including lz4.h or lz4hc.h failed : <stdint.h> was imported within extern "C". All public headers (lz4.h, lz4hc.h, lz4frame.h, lz4file.h) now include their dependencies before opening extern "C". New test : make -C tests test-cxx-modules (requires clang), run in CI with clang on Linux, and on macOS. Fixes #1600. Based on #1815 by @sergioperezcheco.