Commit 1f79e81c authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

python: fix compilation without VILLASnode

Former-commit-id: 8ae173fe
parent bd00e373
......@@ -31,6 +31,7 @@
#include <Python.h>
#endif
#include <cps/Config.h>
#include <cps/Definitions.h>
namespace DPsim {
......
......@@ -363,12 +363,14 @@ int Python::Interface::init(Python::Interface *self, PyObject *args, PyObject *k
}
PyMemberDef Python::Interface::members[] = {
#ifdef WITH_SHMEM
{(char *) "wname", T_STRING, offsetof(Python::Interface, wname), READONLY, nullptr},
{(char *) "rname", T_STRING, offsetof(Python::Interface, rname), READONLY, nullptr},
{(char *) "queuelen", T_INT, offsetof(Python::Interface, conf.queuelen), READONLY, nullptr},
{(char *) "samplelen", T_INT, offsetof(Python::Interface, conf.samplelen), READONLY, nullptr},
{(char *) "polling", T_INT, offsetof(Python::Interface, conf.polling), READONLY, nullptr},
{(char *) "exports", T_OBJECT, offsetof(Python::Interface, pyExports), READONLY, nullptr},
#endif
{nullptr}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment