]> git.eshelyaron.com Git - emacs.git/commitdiff
Unbreak the MS-Windows build
authorEli Zaretskii <eliz@gnu.org>
Tue, 9 Jul 2019 15:04:29 +0000 (18:04 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 9 Jul 2019 15:04:29 +0000 (18:04 +0300)
* src/font.c (open): Don't undef on WINDOWSNT, as ms-w32.h
redirects it to sys_open.

src/font.c

index 457f3f9958310812684851759d73c8da6462246a..ffd506449304903add3ee33e0391ad074a84df9d 100644 (file)
@@ -46,7 +46,9 @@ along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.  */
 
 /* Avoid macro definition of `open' in generated lib/fcntl.h to mess up
    use of it as a struct member.  */
+#ifndef WINDOWSNT
 #undef open
+#endif
 
 #define DEFAULT_ENCODING Qiso8859_1