Skip to content

Commit

Permalink
Fix compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
drmoose committed Aug 28, 2020
1 parent fe38a24 commit 3aa548f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/pybind11/embed.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ struct wide_char_arg_deleter {
}
};

wchar_t* widen_chars(char* safe_arg) {
inline wchar_t* widen_chars(char* safe_arg) {
#if PY_VERSION_HEX >= 0x030500f0
wchar_t* widened_arg = Py_DecodeLocale(safe_arg, nullptr);
#else
Expand Down Expand Up @@ -159,7 +159,7 @@ inline void set_interpreter_argv(int argc, char** argv, bool add_current_dir_to_
// to work around CVE-2008-5983
PySys_SetArgv(argc, pysys_argv);
if (!add_current_dir_to_path)
PyList_PopItem(py::module::import("sys").attr("path").ptr(), 0);
module::import("sys").attr("path").attr("pop")();
#else
PySys_SetArgvEx(argc, pysys_argv, add_current_dir_to_path ? 1 : 0);
#endif
Expand Down

0 comments on commit 3aa548f

Please sign in to comment.