]> git.mxchange.org Git - flightgear.git/commitdiff
popen/pclose changed to _popen/_pclose for Windows
authorFrederic Bouvier <fredfgfs01@free.fr>
Sun, 16 Dec 2012 19:35:50 +0000 (20:35 +0100)
committerFrederic Bouvier <fredfgfs01@free.fr>
Sun, 16 Dec 2012 19:35:50 +0000 (20:35 +0100)
utils/fgviewer/MEncoderCaptureOperation.hxx

index 051996584f404f961c972a6eb481f227a2c4a69e..c676978366cee4e0277451d5f7916a32c5a5c997 100644 (file)
@@ -104,7 +104,7 @@ private:
            << _fps << ":w=" << _width << ":h=" << _height
            << ":format=rgb24 -o " << _fileName << " " << _options;
 #ifdef _WIN32
-        _file = popen(ss.str().c_str(), "wb");
+        _file = _popen(ss.str().c_str(), "wb");
 #else
         _file = popen(ss.str().c_str(), "w");
 #endif
@@ -114,7 +114,11 @@ private:
     {
         if (!_file)
             return;
+#ifdef _WIN32
+        _pclose(_file);
+#else
         pclose(_file);
+#endif
         _file = 0;
     }