Salome HOME
Merge V9_dev branch into master
[modules/paravis.git] / test / standalone / simple / Container_init_python.hxx
index 2a56413555951783cd9a759ad5a25b151a859e34..b1de3e41fcc69d6f903b13ed41311f98c6d6581e 100644 (file)
 #endif
 #include <Python.h>
 
+#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
 // -------------------------------------------------------------