(feature->type != SENSORS_FEATURE_TEMP) &&
#if SENSORS_API_VERSION >= 0x402
(feature->type != SENSORS_FEATURE_CURR) &&
+#endif
+#if SENSORS_API_VERSION >= 0x431
(feature->type != SENSORS_FEATURE_HUMIDITY) &&
#endif
(feature->type != SENSORS_FEATURE_POWER)) {
(subfeature->type != SENSORS_SUBFEATURE_TEMP_INPUT) &&
#if SENSORS_API_VERSION >= 0x402
(subfeature->type != SENSORS_SUBFEATURE_CURR_INPUT) &&
+#endif
+#if SENSORS_API_VERSION >= 0x431
(subfeature->type != SENSORS_SUBFEATURE_HUMIDITY_INPUT) &&
#endif
(subfeature->type != SENSORS_SUBFEATURE_POWER_INPUT))
#if SENSORS_API_VERSION >= 0x402
else if (fl->feature->type == SENSORS_FEATURE_CURR)
type = "current";
+#endif
+#if SENSORS_API_VERSION >= 0x431
else if (fl->feature->type == SENSORS_FEATURE_HUMIDITY)
type = "humidity";
#endif