Per report from Andrew Dunstan.
#include
-static int copy_file(const char *fromfile, const char *tofile, bool force);
-#ifdef WIN32
+#ifndef WIN32
+static int copy_file(const char *fromfile, const char *tofile, bool force);
+#else
static int win32_pghardlink(const char *src, const char *dst);
#endif
}
+#ifndef WIN32
static int
copy_file(const char *srcfile, const char *dstfile, bool force)
{
return 1;
}
+#endif
/*