From c378c7d6f3b7d96e95c226f74beea888b97f2760 Mon Sep 17 00:00:00 2001 From: Paul I Date: Sat, 12 Jan 2019 18:43:51 +0300 Subject: [PATCH] Add missing #ifdef checks (#1096) --- src/common/QtResImporter.cpp | 4 ++++ src/common/QtResImporter.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/common/QtResImporter.cpp b/src/common/QtResImporter.cpp index 69d5da04..c6178e53 100644 --- a/src/common/QtResImporter.cpp +++ b/src/common/QtResImporter.cpp @@ -1,3 +1,5 @@ +#ifdef CUTTER_ENABLE_JUPYTER + #include #include @@ -97,3 +99,5 @@ PyObject *PyInit_qtres() { return PyModule_Create(&QtResModule); } + +#endif // CUTTER_ENABLE_JUPYTER diff --git a/src/common/QtResImporter.h b/src/common/QtResImporter.h index f0c81568..54203a6d 100644 --- a/src/common/QtResImporter.h +++ b/src/common/QtResImporter.h @@ -1,10 +1,14 @@ #ifndef QTRESIMPORTER_H #define QTRESIMPORTER_H +#ifdef CUTTER_ENABLE_JUPYTER + PyObject *PyInit_qtres(); PyObject *QtResImport(const char *name); #define RegQtResImporter() Py_DecRef(QtResImport("reg_qtres_importer")) +#endif // CUTTER_ENABLE_JUPYTER + #endif // QTRESIMPORTER_H