pad: make an ACCEPT_CAPS query
[platform/upstream/gstreamer.git] / gst / gstmacros.h
index 9806446..e38af53 100644 (file)
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 02111-1307, USA.
  */
-/**
- * SECTION:gstmacros
- * @short_description: Various portabillity helper macros
- *
- * A set of macros complementing the glib portability macros.
- */
-
 #ifndef __GST_MACROS_H__
 #define __GST_MACROS_H__
 
@@ -46,6 +39,14 @@ G_BEGIN_DECLS
 # undef GST_CAN_INLINE
 #endif
 
+#if (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L) && !defined(restrict)
+#  if defined(__GNUC__) && __GNUC__ >= 4
+#    define restrict __restrict__
+#  else
+#    define restrict
+#  endif
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_MACROS_H__ */