X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=test%2Fstandalone%2Fsimple%2FContainer_init_python.hxx;h=b1de3e41fcc69d6f903b13ed41311f98c6d6581e;hb=4add4ae05911c5ce6201e7ccd8da3333cad64598;hp=2a56413555951783cd9a759ad5a25b151a859e34;hpb=654addd46335c9a7f42e87b662f9085414db8069;p=modules%2Fparavis.git diff --git a/test/standalone/simple/Container_init_python.hxx b/test/standalone/simple/Container_init_python.hxx index 2a564135..b1de3e41 100644 --- a/test/standalone/simple/Container_init_python.hxx +++ b/test/standalone/simple/Container_init_python.hxx @@ -42,6 +42,18 @@ #endif #include +#if PY_VERSION_HEX < 0x03050000 +static char* +Py_EncodeLocale(const wchar_t *arg, size_t *size) +{ + return _Py_wchar2char(arg, size); +} +static wchar_t* +Py_DecodeLocale(const char *arg, size_t *size) +{ + return _Py_char2wchar(arg, size); +} +#endif // next two MACRO must be used together only once inside a block // -------------------------------------------------------------