texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[6993] Fix compiler warnings about popen/pclose in MinGW build


From: Eli Zaretskii
Subject: [6993] Fix compiler warnings about popen/pclose in MinGW build
Date: Sat, 06 Feb 2016 19:50:55 +0000

Revision: 6993
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6993
Author:   eliz
Date:     2016-02-06 19:50:54 +0000 (Sat, 06 Feb 2016)
Log Message:
-----------
Fix compiler warnings about popen/pclose in MinGW build

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/tp/Texinfo/Convert/XSParagraph/xspara.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2016-02-06 12:38:47 UTC (rev 6992)
+++ trunk/ChangeLog     2016-02-06 19:50:54 UTC (rev 6993)
@@ -1,3 +1,9 @@
+2016-02-06  Eli Zaretskii  <address@hidden>
+
+       * tp/Texinfo/Convert/XSParagraph/xspara.c (popen, pclose)
+       [_WIN32]: Redefine to their non-Posix counterparts _popen and
+       _pclose, to countermand Perl redirections in XSUB.h.
+
 2016-02-06  Gavin Smith  <address@hidden>
 
        6.1 release.

Modified: trunk/tp/Texinfo/Convert/XSParagraph/xspara.c
===================================================================
--- trunk/tp/Texinfo/Convert/XSParagraph/xspara.c       2016-02-06 12:38:47 UTC 
(rev 6992)
+++ trunk/tp/Texinfo/Convert/XSParagraph/xspara.c       2016-02-06 19:50:54 UTC 
(rev 6993)
@@ -198,8 +198,18 @@
   return 1;
 }
 
+/* Avoid warnings due to redefinition of popen/pclose in Perl headers.  */
+#ifdef popen
+# undef popen
+# define popen(c,m) _popen(c,m)
 #endif
+#ifdef pclose
+# undef pclose
+# define pclose(f)  _pclose(f)
+#endif
 
+#endif
+
 int
 xspara_init (void)
 {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]