Tom 7 - 2017-01-16

Sorry, I don't understand -- the indicated lines already contain #ifdef, but so does this file at head. So maybe this issue was already fixed and you're somehow using an old version of the file?

I compile util.cc into many projects, so it's more likely an issue with the makefile or other configuration. Usually you need to define one of WIN32, LINUX, or OSX (like with -DWIN32=1 as an arg to g++).