[Mesa-dev] [PATCH] nir: no-op C99 _Pragma() with MSVC

Giuseppe Bilotta giuseppe.bilotta at gmail.com
Sat Nov 23 06:44:49 UTC 2019


On Sat, Nov 23, 2019 at 3:49 AM Brian Paul <brianp at vmware.com> wrote:
> +
> +/* MSVC doesn't have C99's _Pragma() */
> +#ifdef _MSC_VER
> +#define _Pragma(x)
> +#endif

FWIW, MSVC has its own __pragma() extension instead of _Pragma(), but
IIRC the syntax is slightly different (the contents are tokens, not a
string to be tokenized), so supporting both with a common syntax would
probably require some sophisticated preprocessor hoop jumping.

Cheers,
-- 
Giuseppe "Oblomov" Bilotta


More information about the mesa-dev mailing list