st/mesa: try to fix MSVC build failure due to ALWAYS_INLINE
[mesa.git] / src / mesa / state_tracker / st_atom_array.c
index de03abea66d6ec685a7bc51b1dda4fe0655dc253..b4af4c3e6298525ab5fe6ec1cc9ea2c50ddb89a6 100644 (file)
@@ -125,7 +125,10 @@ init_velement(const struct st_vertex_program *vp,
 /* ALWAYS_INLINE helps the compiler realize that most of the parameters are
  * on the stack.
  */
-void ALWAYS_INLINE
+void
+#ifndef _MSC_VER /* MSVC doesn't like inlining public functions */
+ALWAYS_INLINE
+#endif
 st_setup_arrays(struct st_context *st,
                 const struct st_vertex_program *vp,
                 const struct st_common_variant *vp_variant,