Fix GCC module build and MSVC C4127 in the json_view SIMD code

GCC ignores the target attribute in modules, so the SSSE3 dispatch is
disabled for the module interface (the check stays portable, SSE2 is kept).
Make the 8-vs-16 byte unrolling condition in scan_string_run a
preprocessor/template split to avoid a constant condition (C4127).

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
Niels Lohmann
2026-10-08 16:23:21 +02:00
parent 890918a310
commit d09643e3e3
4 changed files with 13 additions and 2 deletions

BIN
gcm.cache/nlohmann.json.gcm Normal file

Binary file not shown.