Entry point not defined when compiling *C* code in MSVC

I’m having trouble linking SDL2 with my C project.
I defined the correct main function

int main(int argc, char *argv[]);

I linked the .libs in the correct order

SDL2main.lib SDL2.lib

but I get an error message

LINK : fatal error LNK1561: entry point must be defined

and I suspect it’s because I’m using the /TC flag in the compiler to use C instead of C++. I’m not sure how to fix it.