On Friday, 26 July 2019 at 14:19:05 UTC, Paul Backus wrote:
version(HasStdio)
    import std.stdio;
else
    pragma(msg, "std.stdio is not available");

Then configure your build system to pass `-version=HasStdio` to dmd (or the equivalent flag to ldc or gdc) when std.stdio is available.

I want to achieve similar result without versions.

Reply via email to