Xinqi Bao's Git

More robust preprocessor switches
[slstatus.git] / components / temperature.c
index bbd4daf..4a447e5 100644 (file)
@@ -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