mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-19 10:58:51 +00:00
Add missing #ifdef checks (#1096)
This commit is contained in:
parent
3666c97178
commit
c378c7d6f3
@ -1,3 +1,5 @@
|
||||
#ifdef CUTTER_ENABLE_JUPYTER
|
||||
|
||||
#include <Python.h>
|
||||
#include <marshal.h>
|
||||
|
||||
@ -97,3 +99,5 @@ PyObject *PyInit_qtres()
|
||||
{
|
||||
return PyModule_Create(&QtResModule);
|
||||
}
|
||||
|
||||
#endif // CUTTER_ENABLE_JUPYTER
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user