[pulseaudio-discuss] [PATCH] Windows compilation fixes

Tanu Kaskinen tanuk at iki.fi
Sat Oct 7 19:23:28 UTC 2017


On Tue, 2017-10-03 at 15:03 +0200, salvador fandino wrote:
> +#define QUOTE_MACRO(x) #x
>      if (!(e = getenv("LADSPA_PATH")))
> -        e = LADSPA_PATH;
> +        e = QUOTE_MACRO(LADSPA_PATH);
> +#undef QUOTE_MACRO

Nice trick! I didn't know the # operator did escaping, and even if I
knew, this solution probably wouldn't have occurred to me.

I added a comment to the code explaining what this does.

Thanks for the patches! I applied all three.

-- 
Tanu

https://www.patreon.com/tanuk


More information about the pulseaudio-discuss mailing list