('std::istreambuf_iterator<std::istream>', 'HAVE_DECL_ISTREAMBUF_ITERATOR',
'#include <streambuf>\n#include <istream>'),
('wchar_t', 'HAVE_WCHAR_T', None),
('std::istreambuf_iterator<std::istream>', 'HAVE_DECL_ISTREAMBUF_ITERATOR',
'#include <streambuf>\n#include <istream>'),
('wchar_t', 'HAVE_WCHAR_T', None),
+ ('mode_t', 'HAVE_MODE_T', "#include <sys/types.h>"),
],
libs = [
('gdi32', 'HAVE_LIBGDI32'),
],
libs = [
('gdi32', 'HAVE_LIBGDI32'),
bool lyx::support::chmod(string const & file, unsigned long int mode)
{
bool lyx::support::chmod(string const & file, unsigned long int mode)
{
+#if defined (HAVE_CHMOD) && defined (HAVE_MODE_T)
if (::chmod(file.c_str(), mode_t(mode)) != 0)
return false;
#else
if (::chmod(file.c_str(), mode_t(mode)) != 0)
return false;
#else