Re: [hackers] [slstatus] battery_perc: Port to OpenBSD. || Aaron Marcher

From: Quentin Rameau <>
Date: Tue, 20 Mar 2018 10:04:40 +0100

> +#elif __OpenBSD__
> +#elif __OpenBSD__

Also, for more robustness you should use

#elif defined(__OpenBSD__)

You shouldn't test its evaluated expanded value, but only if it is
defined or not.

(then I'd replace matching #ifdef with #if defined(), but I guess
that's more a matter of taste)
Received on Tue Mar 20 2018 - 10:04:40 CET

This archive was generated by hypermail 2.3.0 : Tue Mar 20 2018 - 10:12:23 CET