Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
More robust preprocessor switches
[slstatus.git]
/
components
/
temperature.c
diff --git
a/components/temperature.c
b/components/temperature.c
index
bbd4daf
..
4a447e5
100644
(file)
--- a/
components/temperature.c
+++ b/
components/temperature.c
@@
-1,4
+1,5
@@
/* See LICENSE file for copyright and license details. */
+#if defined(__linux__)
#include <stdio.h>
#include "../util.h"
@@
-11,3
+12,4
@@
temp(const char *file)
return (pscanf(file, "%d", &temp) == 1) ?
bprintf("%d", temp / 1000) : NULL;
}
+#endif