Commit ea4b0861 authored by Nirbheek Chauhan's avatar Nirbheek Chauhan

gstmacros.h: Fix check for 'restrict' keyword

MSVC also defines it as a keyword. Fixes build errors in projects that
include MSVC's xkeycheck.h which ensures that keywords aren't overriden
with a define.
parent 790f193d
......@@ -41,7 +41,8 @@ G_BEGIN_DECLS
#if (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L) && !defined(restrict)
/* MSVC defines 'restrict' as a keyword and not a define */
#if (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L) && !defined(_MSC_VER) && !defined(restrict)
# if defined(__GNUC__) && __GNUC__ >= 4
# define restrict __restrict__
# else
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