3 ms·
When I build C projects which, admittedly, is making a game, I always start off with platform specific code. This is very handy by splitting up .h and .c files.
by masfoobar 3y ago
When I build C projects which, admittedly, is making a game, I always start off with platform specific code. This is very handy by splitting up .h and .c files.
ie...
platform.h
platform_windows.c
platform_linux.c
etc.
This way, my build file for windows uses platform_windows.c, etcetc.