From 5cc6dc74d4415ec31d389e19cb7f868f06b93a98 Mon Sep 17 00:00:00 2001 From: Ethan Smith Date: Thu, 1 Mar 2018 14:46:27 -0800 Subject: [PATCH] conditionally include Python3.6 items --- src/ffi3/ceval.rs | 1 + src/ffi3/pystate.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/ffi3/ceval.rs b/src/ffi3/ceval.rs index b0361581..327b2278 100644 --- a/src/ffi3/ceval.rs +++ b/src/ffi3/ceval.rs @@ -1,6 +1,7 @@ use std::os::raw::{c_void, c_char, c_int}; use ffi3::object::PyObject; use ffi3::pystate::PyThreadState; +#[cfg(Py_3_6)] use ffi3::code::FreeFunc; #[cfg_attr(windows, link(name="pythonXY"))] extern "C" { diff --git a/src/ffi3/pystate.rs b/src/ffi3/pystate.rs index cbef42dc..256490f3 100644 --- a/src/ffi3/pystate.rs +++ b/src/ffi3/pystate.rs @@ -1,6 +1,7 @@ use std::os::raw::{c_int, c_long}; use ffi3::object::PyObject; use ffi3::moduleobject::PyModuleDef; +#[cfg(Py_3_6)] use ffi3::ceval::_PyFrameEvalFunction; #[cfg(Py_3_6)]