Source code for pbrt, the renderer described in the third edition of "Physically Based Rendering: From Theory To Implementation", by Matt Pharr, Wenzel Jakob, and Greg Humphreys.
It seems that some of the expected defines aren't set by the VC++ 2017 that ships with Visual Studio 2017 Community edition. Either that, or that line has an error and it should look for _WIN32 instead of WIN32 (no underscore)
The build fails here: https://github.com/mmp/pbrt-v3/blob/df8c1089524ebe1a4772b13b7e87d54e0aa58400/src/core/imageio.cpp#L306
It seems that some of the expected defines aren't set by the VC++ 2017 that ships with Visual Studio 2017 Community edition. Either that, or that line has an error and it should look for
_WIN32
instead ofWIN32
(no underscore)