diff --git a/src/python-cellframe.c b/src/python-cellframe.c
index 7e64b91289100c92c61e0d2f3688d471772116b4..e2f1a4f9a0fd16f99e08358ca8bd83bdbcb48ee0 100644
--- a/src/python-cellframe.c
+++ b/src/python-cellframe.c
@@ -493,7 +493,7 @@ PyObject *python_cellframe_deinit(PyObject *self, PyObject *args){
     return PyLong_FromLong(0);
 }
 
-#ifdef DAP_SUPPORT_PYTHON_PLUGINS
+#ifndef DAP_SUPPORT_PYTHON_PLUGINS
 int main(int argc, char **argv) {
     wchar_t *program = Py_DecodeLocale(argv[0], NULL);
     if (program == NULL) {