Commit 3d0e3990 authored by Ivan.Shulga's avatar Ivan.Shulga Committed by Alexander Trofimov

linux build

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@58449 954022d7-b5bf-4e40-9824-e11837661b57
parent 0489424a
......@@ -430,6 +430,8 @@ inline const Type& SSMAX(const Type& arg1, const Type& arg2)
#endif
typedef wchar_t OLECHAR;
typedef const TCHAR* LPCTSTR;
#endif // #ifndef _WIN32
......
......@@ -24,6 +24,11 @@
#include "HeaderFooter.h"
#include "Theme/Theme.h"
#ifndef _WIN32
#include <sys/stat.h>
#endif
namespace OOX
{
class CDocx : public OOX::IFileContainer
......@@ -76,7 +81,12 @@ namespace OOX
return FALSE;
//
#ifdef _WIN32
CreateDirectoryW( oFilePath.GetPath(), NULL );
#else
std::string sFileParthUtf8 = stringWstingToUtf8String (oFilePath.GetPath());
mkdir (sFileParthUtf8.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
#endif
OOX::CRels oRels;
OOX::CContentTypes oContent;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment