Mercurial > hg > octave-shane > gnulib-hg
comparison lib/stdio.in.h @ 15642:5f0f5820c414
popen: Support for MSVC.
* lib/stdio.in.h (popen): Declare it if the system lacks this function.
* lib/popen.c (popen): Provide alternate definition for native Windows.
* m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
* m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
* modules/popen (Depends-on, configure.ac): Update condition.
* modules/stdio (Makefile.am): Substitute HAVE_POPEN.
* doc/posix-functions/popen.texi: Mention that the MSVC problem is
fixed.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 17 Sep 2011 18:28:17 +0200 |
parents | d9e175d5d217 |
children | fe99cfdb102f |
comparison
equal
deleted
inserted
replaced
15641:a23d9939d7a5 | 15642:5f0f5820c414 |
---|---|
779 # endif | 779 # endif |
780 _GL_FUNCDECL_RPL (popen, FILE *, (const char *cmd, const char *mode) | 780 _GL_FUNCDECL_RPL (popen, FILE *, (const char *cmd, const char *mode) |
781 _GL_ARG_NONNULL ((1, 2))); | 781 _GL_ARG_NONNULL ((1, 2))); |
782 _GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode)); | 782 _GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode)); |
783 # else | 783 # else |
784 # if !@HAVE_POPEN@ | |
785 _GL_FUNCDECL_SYS (popen, FILE *, (const char *cmd, const char *mode) | |
786 _GL_ARG_NONNULL ((1, 2))); | |
787 # endif | |
784 _GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode)); | 788 _GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode)); |
785 # endif | 789 # endif |
786 _GL_CXXALIASWARN (popen); | 790 _GL_CXXALIASWARN (popen); |
787 #elif defined GNULIB_POSIXCHECK | 791 #elif defined GNULIB_POSIXCHECK |
788 # undef popen | 792 # undef popen |