Fix #21267: ImportC: __forceinline ignored

Fixes https://github.com/dlang/dmd/issues/21267

`__forceinline` is the same as `__attribute__((always_inline))`,
so `#define` it to be the same.
This commit is contained in:
drpriver 2025-04-18 17:43:01 -07:00 committed by Nicholas Wilson
parent 0845912f27
commit dfe501dde6
2 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,4 @@
// https://github.com/dlang/dmd/issues/21267
static inline __forceinline int square(int x) { return x * x; }
int doSquare(int x) { return square(x); }

View file

@ -56,7 +56,7 @@
*/
#define __fastcall
#define __forceinline
#define __forceinline __attribute__((always_inline))
#undef _Check_return_
//#define _Check_return_
#define __pragma(x)