Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
8e5ea6dc
Kaydet (Commit)
8e5ea6dc
authored
Kas 16, 2012
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
pyuno: fix breakage because PATH_MAX not defined with Python3
Change-Id: I12e55c8810193591d9cd017bf5d89078b3915ddb
üst
e60f936e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
pyuno_loader.cxx
pyuno/source/loader/pyuno_loader.cxx
+13
-1
No files found.
pyuno/source/loader/pyuno_loader.cxx
Dosyayı görüntüle @
8e5ea6dc
...
...
@@ -30,6 +30,19 @@
#include <cppuhelper/implementationentry.hxx>
#include <cppuhelper/factory.hxx>
// apparently PATH_MAX is not standard and not defined by MSVC
#ifndef PATH_MAX
#ifdef _MAX_PATH
#define PATH_MAX _MAX_PATH
#else
#ifdef MAX_PATH
#define PATH_MAX MAX_PATH
#else
#error no PATH_MAX
#endif
#endif
#endif
using
rtl
::
OUString
;
using
rtl
::
OUStringBuffer
;
using
rtl
::
OString
;
...
...
@@ -111,7 +124,6 @@ static void setPythonHome ( const OUString & pythonHome )
OString
o
=
rtl
::
OUStringToOString
(
systemPythonHome
,
osl_getThreadTextEncoding
()
);
#if PY_MAJOR_VERSION >= 3
// static because Py_SetPythonHome just copies the "wide" pointer
// PATH_MAX is defined in Python.h
static
wchar_t
wide
[
PATH_MAX
+
1
];
size_t
len
=
mbstowcs
(
wide
,
o
.
pData
->
buffer
,
PATH_MAX
+
1
);
if
(
len
==
(
size_t
)
-
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment