Disable init prioritization in QNX

This fixes issue with non working QHash when loading QML plugins in QNX.

Change-Id: I55c9edc58aa27cff694603e6281c980e1fedbeba
Taks-number: QTBUG-101341
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Alexey Edelev 2022-03-15 13:07:02 +01:00
parent 69d525a6fa
commit aec6b00758

View File

@ -71,6 +71,9 @@
# define Q_DECL_INIT_PRIORITY(nn) \ # define Q_DECL_INIT_PRIORITY(nn) \
__pragma(warning(disable: 4075)) \ __pragma(warning(disable: 4075)) \
__pragma(init_seg(".CRT$XCK" QT_STRINGIFY(nn))) Q_DECL_UNUSED __pragma(init_seg(".CRT$XCK" QT_STRINGIFY(nn))) Q_DECL_UNUSED
#elif defined(Q_OS_QNX)
// init_priority fails on QNX and we didn't bother investigating why
# define QT_SUPPORTS_INIT_PRIORITY 0
#elif defined(Q_OS_WIN) || defined(Q_OF_ELF) #elif defined(Q_OS_WIN) || defined(Q_OF_ELF)
# define QT_SUPPORTS_INIT_PRIORITY 1 # define QT_SUPPORTS_INIT_PRIORITY 1
// priorities 0 to 1000 are reserved to the runtime; // priorities 0 to 1000 are reserved to the runtime;