summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/acconfig.h1
-rw-r--r--src/script.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/acconfig.h b/src/acconfig.h
index fb46c63..6cf4d4e 100644
--- a/src/acconfig.h
+++ b/src/acconfig.h
@@ -168,6 +168,7 @@
/*Include the binding you would like to use.*/
#ifdef SCRIPT
#define LUA_BINDING
+#define PY_BINDING
#endif
#undef BUILTIN_TELNET
diff --git a/src/script.c b/src/script.c
index 9e2fd39..28e8afb 100644
--- a/src/script.c
+++ b/src/script.c
@@ -42,7 +42,9 @@ register_binding (struct binding *new_binding)
extern struct binding lua_binding;
#endif
+#ifdef PY_BINDING
extern struct binding py_binding;
+#endif
void LoadBindings(void)
{
@@ -50,7 +52,9 @@ void LoadBindings(void)
register_binding(&lua_binding);
#endif
+#ifdef PY_BINDING
register_binding(&py_binding);
+#endif
}
void