aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/pyenum.h
diff options
context:
space:
mode:
Diffstat (limited to 'libshiboken/pyenum.h')
-rw-r--r--libshiboken/pyenum.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/libshiboken/pyenum.h b/libshiboken/pyenum.h
index ab32052a4..18dc6730c 100644
--- a/libshiboken/pyenum.h
+++ b/libshiboken/pyenum.h
@@ -36,6 +36,7 @@
#define PYENUM_H
#include <Python.h>
+#include "shibokenmacros.h"
namespace Shiboken
{
@@ -49,16 +50,16 @@ typedef struct {
PyObject* ob_name;
} PyEnumObject;
-PyAPI_FUNC(PyObject*) PyEnumObject_repr(PyObject* self);
-PyAPI_FUNC(PyObject*) PyEnumObject_name(PyObject* self);
-PyAPI_FUNC(PyObject*) PyEnumObject_NonExtensibleNew(PyTypeObject* type, PyObject* args, PyObject* kwds);
+LIBSHIBOKEN_API PyAPI_FUNC(PyObject*) PyEnumObject_repr(PyObject* self);
+LIBSHIBOKEN_API PyAPI_FUNC(PyObject*) PyEnumObject_name(PyObject* self);
+LIBSHIBOKEN_API PyAPI_FUNC(PyObject*) PyEnumObject_NonExtensibleNew(PyTypeObject* type, PyObject* args, PyObject* kwds);
} // extern "C"
-PyObject* PyEnumObject_New(PyTypeObject *instanceType,
+LIBSHIBOKEN_API PyObject* PyEnumObject_New(PyTypeObject *instanceType,
long item_value,
const char* item_name);
-PyObject* PyEnumObject_New(PyTypeObject *instanceType,
+LIBSHIBOKEN_API PyObject* PyEnumObject_New(PyTypeObject *instanceType,
long item_value,
PyObject* item_name = 0);