Commit a1447b03 authored by Nirbheek Chauhan's avatar Nirbheek Chauhan

gstmacros.h: Fix restrict definition on MSVC

Turns out it's exposed as `__restrict`, not as `restrict`.

gstreamer/gstreamer!95 (comment 120782)
parent ea4b0861
......@@ -42,9 +42,11 @@ G_BEGIN_DECLS
#endif
/* MSVC defines 'restrict' as a keyword and not a define */
#if (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L) && !defined(_MSC_VER) && !defined(restrict)
#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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment