gstinfo: clean up function pointer names hashtable
[platform/upstream/gstreamer.git] / gst / gstmacros.h
index 53cf6cf..b3313e4 100644 (file)
@@ -41,9 +41,12 @@ G_BEGIN_DECLS
 # undef GST_CAN_INLINE
 #endif
 
+/* MSVC defines 'restrict' as a keyword and not a define */
 #if (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L) && !defined(restrict)
 #  if defined(__GNUC__) && __GNUC__ >= 4
 #    define restrict __restrict__
+#  elif defined(_MSC_VER)
+#    define restrict __restrict
 #  else
 #    define restrict
 #  endif