Trouble compiling with CodeBlocks for Windows

Everything’s running smoothly until I hit sdltiles.cpp, then:

C:\projects\Cataclysm\Cataclysm-DDA-master\src\sdltiles.cpp: In lambda function:
C:\projects\Cataclysm\Cataclysm-DDA-master\src\sdltiles.cpp:3214:49: error: 'GetSystemWindowsDirectory' was not declared in this scope
         GetSystemWindowsDirectory( buf, 256 );

Any ideas on what’s causing this issue?

You need to guard this code block for MinGW.

I ended up just hardcoding the path, which seems to work fine for now.