Conditionally define Q_ALWAYS_INLINE.
authorErik Verbruggen <erik.verbruggen@digia.com>
Mon, 27 Jul 2015 08:43:25 +0000 (10:43 +0200)
committerErik Verbruggen <erik.verbruggen@theqtcompany.com>
Wed, 29 Jul 2015 09:49:24 +0000 (09:49 +0000)
Step one in moving it next to Q_NEVER_INLINE in qglobal_p.h.

Change-Id: Iedecf8de2531334cf3cf8cd5ae4c7b19f2d7736b
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
src/qml/jsruntime/qv4value_p.h

index 30cdcaa1cb8a1af6ff5347b5ac6bc7a71ddde65e..718bdbb620a6a504e863599b83477595d158a38d 100644 (file)
@@ -39,6 +39,7 @@
 #include "qv4global_p.h"
 #include <private/qv4heap_p.h>
 
+#ifndef Q_ALWAYS_INLINE
 #if defined(Q_CC_GNU)
 #  define Q_ALWAYS_INLINE inline __attribute__((always_inline))
 #elif defined(Q_CC_MSVC)
@@ -46,6 +47,7 @@
 #else
 #  define Q_ALWAYS_INLINE inline
 #endif
+#endif // Q_ALWAYS_INLINE
 
 QT_BEGIN_NAMESPACE