mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 22:34:28 +00:00
zig.h: fix msvc abi for f128 with a gnu compiler
This commit is contained in:
parent
7ca9b835a1
commit
5afaaf865f
1 changed files with 7 additions and 2 deletions
|
|
@ -3306,8 +3306,13 @@ typedef zig_repr_f128 zig_f128;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if _MSC_VER && !defined(ZIG_TARGET_ABI_MSVC)
|
#if !_MSC_VER && defined(ZIG_TARGET_ABI_MSVC)
|
||||||
// Use gnu abi with the msvc compiler
|
// Emulate msvc abi on a gnu compiler
|
||||||
|
#define zig_bitSizeOf_c_longdouble 64
|
||||||
|
typedef zig_repr_f64 zig_repr_c_longdouble;
|
||||||
|
typedef zig_f64 zig_c_longdouble;
|
||||||
|
#elif _MSC_VER && !defined(ZIG_TARGET_ABI_MSVC)
|
||||||
|
// Emulate gnu abi on an msvc compiler
|
||||||
#define zig_bitSizeOf_c_longdouble 128
|
#define zig_bitSizeOf_c_longdouble 128
|
||||||
typedef zig_repr_f128 zig_repr_c_longdouble;
|
typedef zig_repr_f128 zig_repr_c_longdouble;
|
||||||
typedef zig_f128 zig_c_longdouble;
|
typedef zig_f128 zig_c_longdouble;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue