Gradle 2.11 apparently not setting Visual Studio build environment variables

I’m attempting to use gradle to build a C project with Visual Studio 2015 and in the output I’m seeing that the Visual Studio C compiler is unable to open standard library header files such as “string.h” and “stdlib.h” (Visual Studio error C1083). I believe this is due to vcvars32.bat not being set in gradle’s build environment. Is there something that needs to be added to my build.gradle file so that the standard library files can be properly included?