Added support for build without ADL/NVML/NVAPI (issue #120)
[hashcat.git] / include / ext_nvapi.h
index 2278394..83ba915 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef EXT_NVAPI_H
 #define EXT_NVAPI_H
 
+#if defined(HAVE_HWMON) && defined(HAVE_NVAPI)
+
 #include <common.h>
 
 // Just annotations (they do nothing special)
@@ -61,4 +63,6 @@ int hc_NvAPI_GPU_GetThermalSettings (NvPhysicalGpuHandle hPhysicalGpu, NvU32 sen
 int hc_NvAPI_GPU_GetTachReading (NvPhysicalGpuHandle hPhysicalGPU, NvU32 *pValue);
 int hc_NvAPI_GPU_GetDynamicPstatesInfoEx (NvPhysicalGpuHandle hPhysicalGpu, NV_GPU_DYNAMIC_PSTATES_INFO_EX *pDynamicPstatesInfoEx);
 
+#endif // HAVE_HWMON && HAVE_NVAPI
+
 #endif