With automated build systems, the popen_noshell.c is built with C bindings, but the header file might be read by a C++ compiler (and thus create C++ mangled symbol names.)
This small patch forces a C++ compiler to use the proper C symbols. That will enable to link the C code with a C++ compiler/linker, and will still work then the C code is actually compiled with a C++ compiler.
Hi!
With automated build systems, the popen_noshell.c is built with C bindings, but the header file might be read by a C++ compiler (and thus create C++ mangled symbol names.)
This small patch forces a C++ compiler to use the proper C symbols. That will enable to link the C code with a C++ compiler/linker, and will still work then the C code is actually compiled with a C++ compiler.
Thanks, Jan-Benedict