Added support for build without ADL/NVML/NVAPI (issue #120)
[hashcat.git] / include / ext_nvml.h
index 102e072..21d64e5 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef EXT_NVML_H
 #define EXT_NVML_H
 
+#if defined(HAVE_HWMON) && defined(HAVE_NVML)
+
 #include <common.h>
 
 #include <nvml.h>
@@ -31,4 +33,6 @@ nvmlReturn_t hc_NVML_nvmlDeviceGetFanSpeed (HM_LIB hDLL, int, nvmlDevice_t devic
 nvmlReturn_t hc_NVML_nvmlDeviceGetPowerUsage (HM_LIB hDLL, nvmlDevice_t device, unsigned int *power);
 nvmlReturn_t hc_NVML_nvmlDeviceGetUtilizationRates (HM_LIB hDLL, nvmlDevice_t device, nvmlUtilization_t *utilization);
 
+#endif // HAVE_HWMON && HAVE_NVML
+
 #endif