comparison trunk/src/Modules/Output/Graphics/Devices/GraphicsOutputDeviceCairo.cc @ 446:60636113e8fc

- Hack for directories
author tomwalters
date Sun, 14 Nov 2010 06:04:58 +0000
parents 4f75d2462041
children
comparison
equal deleted inserted replaced
445:4f75d2462041 446:60636113e8fc
64 string pathsep("/"); 64 string pathsep("/");
65 #endif 65 #endif
66 directory_ = global_parameters->GetString("output_filename_base") + pathsep; 66 directory_ = global_parameters->GetString("output_filename_base") + pathsep;
67 //! \todo Make build system check for mkdtemp() to use it when available. See TODO.txt. 67 //! \todo Make build system check for mkdtemp() to use it when available. See TODO.txt.
68 #ifdef _WINDOWS 68 #ifdef _WINDOWS
69 if (_mkdir(directory_.c_str()) < 0) { 69 _mkdir(directory_.c_str());
70 LOG_ERROR(_T("Couldn't create directory for image output."));
71 return false;
72 }
73 #else 70 #else
74 mkdir(directory_.c_str(), S_IRWXU); 71 mkdir(directory_.c_str(), S_IRWXU);
75 #endif 72 #endif
76 InitialzeInternal(); 73 InitialzeInternal();
77 return true; 74 return true;