I am a very experienced C programmer. I am getting into Windows 8.1 Store apps.

As we all know, when dealing with C on Visual Studio, the best best is to correctly name your source files as .c and not .cpp

The problem is that doing so in metro world gives lots of 'error D8048: cannot compile C file X with the /ZW option' errors. It is my understanding that I need this flag for the correct runtime.

I'd like to compile some legacy code with lots of malloc commands in, so renaming the files to .cpp is not practical unless I can turn off the resulting errors about casting from void*

Any idea how I can go about writing C for store apps?