Including windows.h

Dave P. dave287091 at gmail.com
Fri Jun 26 12:26:29 UTC 2026


On Tuesday, 23 June 2026 at 04:00:02 UTC, Walter Bright wrote:
> Every operating system vendor suffers from the disease of 
> feeling compelled to add all kinds of ding-dong extensions to 
> their C compiler, all different from every other operating 
> system, and weld them into their ding-dong system .h files.
>
> (The correct way to do this is to make the .h files use 
> Standard C, and relegate the ding-dongs to the implementation 
> files that nobody ever needs to see.)
>
> [...]

If I recall correctly, part of the issue with why you get link 
errors when compiling windows.h is that D doesn’t implement C 
inline correctly and is generating externally visible functions 
in the object files for inline functions and is generating code 
at all for inline functions that aren’t called.

https://github.com/dlang/dmd/issues/21266




More information about the Digitalmars-d mailing list