Commit graph

23 commits

Author SHA1 Message Date
e70cc9212b Merge pull request 'fix vendored libdeflate _rotr* macros vs mingw stdlib.h' (#1) from fix/mingw-rotr64-stdlib-collision into master
Reviewed-on: #1
2026-05-27 04:28:36 +02:00
Crafter Build CI
021ced683d fix vendored libdeflate _rotr* macros colliding with mingw stdlib.h
compiler_gcc.h defined _rotl/_rotr/_rotl64/_rotr64 as macros before
mingw's <stdlib.h> got a chance to declare them as functions. Any
translation unit that did `#include "lib_common.h"` (which transitively
pulls in compiler_gcc.h) and later included <stdlib.h> — utils.c does
exactly this — would have the mingw function declarations textually
substituted by the macros, producing a syntax error.

Force <stdlib.h> in from compiler_gcc.h on mingw so the function
declarations are parsed before the macro names get shadowed. The
later #include in utils.c becomes a no-op via the header guard, and
call sites still resolve to the macros below (so the generated code
is unchanged on every other compiler/target).

This unblocks the Crafter.Build CI's x86_64-w64-mingw32 cross-compile,
which has been failing for a while when building Crafter.Asset →
gdeflate → libdeflate as a dep.
2026-05-27 02:23:53 +00:00
765cf33069 wasm 2026-05-18 22:31:28 +02:00
93e553fba5 compression project.cpp fix 2026-05-12 00:12:05 +02:00
30a283c1b3 asset compression 2026-05-11 18:37:30 +02:00
b9b9ecb84c crafter-build V2 2026-04-29 19:42:40 +02:00
3aaffcd2e2 fix 2026-04-11 13:53:53 +02:00
c6cad0cb45 rename 2026-04-11 13:49:30 +02:00
2306f24e42 load into buffer 2026-04-11 13:27:15 +02:00
09475ed28f F16 tex fix 2026-04-01 08:36:12 +02:00
95ad5625a9 F16 tex 2026-04-01 07:30:26 +02:00
fc85c5318b opaque texture check 2026-03-10 19:01:01 +01:00
00a5704653 texture fix 2026-02-24 04:28:16 +01:00
057e7b94d7 rewrite 2026-02-19 03:00:13 +01:00
7b59aab6db hotfix 2025-05-24 00:50:34 +02:00
a0b6b413e5 hotfix 2025-05-24 00:36:15 +02:00
f101380fd3 hotfix 2025-05-24 00:21:38 +02:00
3e30c9d5da added gitignore 2025-05-23 23:54:30 +02:00
e5373908bb removed build 2025-05-23 23:54:11 +02:00
df4ee20976 asset rework 2025-05-23 23:53:15 +02:00
0b192c611f updated project 2025-05-07 18:56:18 +02:00
6b853b8754 added LICENSE 2025-05-07 18:51:30 +02:00
bf96eb69ae inital commit 2025-05-06 12:37:14 +02:00