August 26, 2023
https://issues.dlang.org/show_bug.cgi?id=24111

          Issue ID: 24111
           Summary: [ImportC] fatal error C1034: stdio.h: no include path
                    set
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: zan77137@nifty.com

Even if VisualStudio or vs_buildtools is installed, the include path resolution may fail in ImportC, like this:
----------
test\use-c-sources\source\some_c_code.c(2): fatal error C1034: stdio.h: no
include path set
----------

A workaround can be found by setting the INCLUDE environment variable.
But this behavior should be done automatically when VisualStudio is detected by
dmd.

See also: https://github.com/dlang/dub/pull/2689/files#diff-7829468e86c1cc5d5133195b5cb48e1ff6c75e3e9203777f6b2e379d9e4882b3R104

--