pgsql: Various MSVC build fixes from Magnus; also remove stray Windows

Started by Tom Laneabout 20 years ago1 messagescommitters