macros: Define restrict keyword if not available
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 19 Oct 2010 13:52:30 +0000 (15:52 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 2 Dec 2010 18:02:07 +0000 (19:02 +0100)
commita797b9f22bf548ff5caa70d670d26aaaade6540e
tree81939855712f122fadca10b5b59813f7d838fad3
parent0ad9a954fe967e690d899f927994a17c809be970
macros: Define restrict keyword if not available

This change always defines the restrict keyword if a
non-C99 C compiler is used. In the case of GCC >= 4
it will be defined to __restrict__, in all other
cases to nothing. This allows to use the restrict
keyword unconditionally.
gst/gstmacros.h