$ diff -u gfile.cc.orig gfile.cc 
--- gfile.cc.orig	2018-03-21 13:21:12.635648536 +0100
+++ gfile.cc	2018-03-21 12:16:05.000000000 +0100
@@ -65,6 +65,8 @@
 #define PATH_MAX 1024
 #endif
 
+#ifndef _WIN32
+
 namespace {
 
 template< typename... >
@@ -99,6 +101,8 @@
 
 }
 
+#endif
+
 //------------------------------------------------------------------------
 
 GooString *getCurrentDir() {

