Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some portability improvements and cleanups in zig.h #22130

Merged
merged 18 commits into from
Dec 7, 2024
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
43a1b88
zig.h: Use __BYTE_ORDER__ instead of __LITTLE_ENDIAN__ for endianness…
alexrp Dec 1, 2024
023a7fe
zig.h: Add TinyCC support where appropriate.
alexrp Dec 1, 2024
fa6946f
zig.h: Add support for C23 keywords.
alexrp Dec 1, 2024
f29daeb
zig.h: Use __thread for slimcc in pre-C11 mode.
alexrp Dec 1, 2024
dd1d9cc
zig.h: Add a zig_msvc macro to be used instead of _MSC_VER.
alexrp Dec 1, 2024
d19e191
zig.h: Define zig_gnuc for both GCC and Clang and stop using __GNUC__.
alexrp Dec 1, 2024
ba66814
zig.h: Don't use __debugbreak() for MinGW.
alexrp Dec 1, 2024
24b57f4
zig.h: Introduce architecture macros to simplify checks throughout.
alexrp Dec 1, 2024
204df19
zig.h: Avoid depending on cpuid.h for zig_x86_cpuid().
alexrp Dec 1, 2024
37538f1
zig.h: Use zig_*_windows_teb() inline assembly with TinyCC and slimcc.
alexrp Dec 2, 2024
062feb6
zig.h: Implement zig_frame_address() with _AddressOfReturnAddress() f…
alexrp Dec 1, 2024
125bf05
zig.h: Implement zig_unreachable() with __assume(0) for MSVC.
alexrp Dec 1, 2024
1c43c2c
zig.h: Remove duplicate and unguarded stdint.h include.
alexrp Dec 2, 2024
0e934c7
zig.h: Use C99/C11 headers if available regardless of language standard.
alexrp Dec 2, 2024
ace8396
zig.h: Move some macros and includes closer to where they're used.
alexrp Dec 2, 2024
084ec97
zig.h: Introduce object format macros.
alexrp Dec 2, 2024
f058b14
zig.h: Introduce operating system macros.
alexrp Dec 2, 2024
c27488a
zig.h: Add zig_gnuc_asm macro to indicate availability of GNU-style i…
alexrp Dec 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Loading