[PATCH] Windows compilation fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux