spoon

set dwm status
git clone git://git.2f30.org/spoon.git
Log | Files | Refs | LICENSE

commit 48aaa560ef35c2fba5a86f11a8d51c90d5444eac
parent e5f8bc81916adcaf337d83a4e89f2fd89c7238f5
Author: sin <sin@2f30.org>
Date:   Thu Oct 13 16:10:46 +0100

Guard Linux implementation in __linux__

Diffstat:
temp.c | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/temp.c b/temp.c @@ -24,7 +24,7 @@ tempread(char *buf, size_t len) snprintf(buf, len, "%ddegC", (temp.value - 273150000) / 1000000); return 0; } -#else +#elif __linux__ int tempread(char *buf, size_t len) { @@ -41,4 +41,10 @@ tempread(char *buf, size_t len) snprintf(buf, len, "%ddegC", temp / 1000); return 0; } +#else +int +tempread(char *buf, size_t len) +{ + return -1; +} #endif