Though the definition of EXT64 could also be improved like this:
{$ifndef FPC_HAS_TYPE_EXTENDED}
{$define EXT64}
{$endif}
After all Extended isn't available for most platforms and also not for Win64.
Certainly true, except that the include files from Wolfgang seems to be a tad more complicated than that to be able to add/include that without care.
Seems that cpu64 define is checked , which in turn defines the bit64 define. the win64 define is checked to take care of defining EXT64.
Depending on the bitxx define (16, 32 or 64) it seems to 'switch' between defining extended as double or a real/simulated extended.
@alextp
I do believe that inside mpconf.inc a similar adjustment is required. Now it reads:
{$ifndef MPC_PurePascal}
{$ifdef BIT64}
{$define MPC_PurePascal}
{$endif}
{$ifdef CPUARM}
{$define MPC_PurePascal}
{$endif}
{$endif}