Hello, I'm currently working on a game engine that includes networking using winsock. I compile the engine into a .lib and link to it in my game. However the game does not require networking and I'd like to not be forced to link with winsock for no reason.
The only way I can think of doing this is wrap all my net code with something like "#ifdef networking" and compile 2 versions of the engine, 1 with networking and 1 without, which would lead to a huge number of combinations if I want to do that same with other things such as physics or audio. Is there a better way of doing this?
Thanks.
p.s. sorry for the horrible title, I had no idea how to word that.

Find content
Not Telling
