aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/libshiboken/typespec.h
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2018-08-22 14:41:41 +0200
committerChristian Tismer <tismer@stackless.com>2018-08-23 07:51:54 +0000
commitb45a890df5bb26c3a4feb8d57dd994fdaaf9c750 (patch)
treecd425ec17ee5bb3211b4e97c37bf2ac8b91cb075 /sources/shiboken2/libshiboken/typespec.h
parent50dca3ef00ffe074959cccb4b2b451cbf0afd384 (diff)
Limited API: remove the "slot_" workaround
It has been a problem to compile the file "typespec.*" when using Python 2. For some reason, the name "slot" was not usable. I cannot find out what it was and how it vanished, but now I could remove the work-around without problems. Maybe it is due to some different includes which don't define some macros? Change-Id: If316c9c78a18cffcc5e4cac07610bd7f522db446 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/shiboken2/libshiboken/typespec.h')
-rw-r--r--sources/shiboken2/libshiboken/typespec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken2/libshiboken/typespec.h b/sources/shiboken2/libshiboken/typespec.h
index 799fcb1b8..46e7dec89 100644
--- a/sources/shiboken2/libshiboken/typespec.h
+++ b/sources/shiboken2/libshiboken/typespec.h
@@ -48,7 +48,7 @@ extern "C"
{
typedef struct{
- int slot_; // slot is somehow reserved in Qt /* slot id, see below */
+ int slot; // slot is somehow reserved in Qt /* slot id, see below */
void *pfunc; /* function pointer */
} PyType_Slot;