core/vpl/vpl_fdopen.cxx
Go to the documentation of this file.
00001 // This is core/vpl/vpl_fdopen.cxx
00002 #include "vpl_fdopen.h"
00003 #include <vcl_cstdio.h>
00004 
00005 #if defined(VCL_COMO)
00006 extern "C" FILE *fdopen(int, char const *);
00007 #endif
00008 
00009 vcl_FILE *vpl_fdopen(int fd, char const *mode)
00010 {
00011 #if defined(VCL_BORLAND_55)
00012   return fdopen(fd, const_cast<char*>(mode));
00013 #elif defined(VCL_BORLAND_56)
00014   return std::fdopen(fd, const_cast<char*>(mode));
00015 #elif defined(VCL_WIN32) && !defined(__CYGWIN__) && _MSC_VER >= 1400
00016   return _fdopen(fd, mode);
00017 #else
00018   return fdopen(fd, mode);
00019 #endif
00020 }