[[if(PLATFORM == PLATFORM_MSW) {print("-lws2_32"); };]]
You can add a squirrel script in the build process:
Add this in the linker settings, other linker optionsCode[[if(PLATFORM == PLATFORM_MSW) {print("-lws2_32"); };]]
or you use build scripts http://wiki.codeblocks.org/index.php?title=Build_scripts but for this you need a additional file