summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2011-12-29 20:05:04 -0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-11 23:33:00 +0100
commit2d98bd48e5145b798dceb254ee57d3c975bcf6b9 (patch)
treee8da81d7e5e542ee2349affbf5d563b6fbccaaf8 /src/gui
parentf9f0f4aea5f0b66d7dcf0f402e5ccf3053c3957c (diff)
Add Q_DECL_RESTRICT and Q_ALWAYS_INLINE for MSVC
Change-Id: I598463e5990e91a5a049d1f9f7a4aa80930c0904 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/painting/qdrawhelper_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/painting/qdrawhelper_p.h b/src/gui/painting/qdrawhelper_p.h
index 7bd31d0ef5..f958538aa6 100644
--- a/src/gui/painting/qdrawhelper_p.h
+++ b/src/gui/painting/qdrawhelper_p.h
@@ -76,6 +76,10 @@ QT_BEGIN_NAMESPACE
# define Q_STATIC_TEMPLATE_FUNCTION static
# define Q_ALWAYS_INLINE inline __attribute__((always_inline))
# define Q_DECL_RESTRICT __restrict__
+#elif defined(Q_CC_MSVC)
+# define Q_STATIC_TEMPLATE_FUNCTION static
+# define Q_ALWAYS_INLINE __forceinline
+# define Q_DECL_RESTRICT __restrict
#else
# define Q_STATIC_TEMPLATE_FUNCTION static
# define Q_ALWAYS_INLINE inline