diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2015-07-27 10:46:06 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@theqtcompany.com> | 2015-08-11 11:00:31 +0000 |
commit | 670cb2edbcdc13b33cebe45a682a6dc10f17b616 (patch) | |
tree | 741a039cd7edce7b43b6de24e9868850ace32348 /src/corelib/global | |
parent | 70da0b71fb99992d2467dafb36b523b637cca4f7 (diff) |
Move Q_ALWAYS_INLINE next to Q_NEVER_INLINE in qglobal.h.
Change-Id: I7e3b7ecca6b5f142fa6cb5db2e9521ed3212afe8
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qglobal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index 51dd64c7cc..f8f306f614 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -496,10 +496,13 @@ typedef qptrdiff qintptr; #ifdef Q_CC_MSVC # define Q_NEVER_INLINE __declspec(noinline) +# define Q_ALWAYS_INLINE __forceinline #elif defined(Q_CC_GNU) # define Q_NEVER_INLINE __attribute__((noinline)) +# define Q_ALWAYS_INLINE inline __attribute__((always_inline)) #else # define Q_NEVER_INLINE +# define Q_ALWAYS_INLINE inline #endif //defines the type for the WNDPROC on windows |