#undef close which was causing problems on w32
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 11 Jul 2020 05:09:11 +0000 (07:09 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 11 Jul 2020 05:09:11 +0000 (07:09 +0200)
src/data/any-reader.c

index a77fa2793f59e8dc028d1367d5781093afca3d50..8ece73f62bb85ffc50941f8983e6bc4fd235f062 100644 (file)
@@ -129,6 +129,10 @@ any_reader_open (struct file_handle *handle)
   NOT_REACHED ();
 }
 
+/* gnulib on some systems defines "close" as something else,
+   which causes problems for this code.  So undefine it here.  */
+#undef close
+
 bool
 any_reader_close (struct any_reader *any_reader)
 {