Replace #pragma once with #ifndef #define #endif logic because #pragma once does not work cleanly on OSX
This commit is contained in:
+4
-1
@@ -5,7 +5,8 @@
|
||||
* License.....: MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef _EXT_NVAPI_H
|
||||
#define _EXT_NVAPI_H
|
||||
|
||||
/**
|
||||
* Declarations from nvapi.h and subheaders
|
||||
@@ -268,3 +269,5 @@ int hm_NvAPI_GPU_GetPerfPoliciesInfo (NVAPI_PTR *nvapi, NvPhysicalGpuHandle hPhy
|
||||
int hm_NvAPI_GPU_GetPerfPoliciesStatus (NVAPI_PTR *nvapi, NvPhysicalGpuHandle hPhysicalGpu, NV_GPU_PERF_POLICIES_STATUS_PARAMS_V1 *perfPolicies_status);
|
||||
int hm_NvAPI_GPU_SetCoolerLevels (NVAPI_PTR *nvapi, NvPhysicalGpuHandle hPhysicalGpu, NvU32 coolerIndex, NV_GPU_COOLER_LEVELS *pCoolerLevels);
|
||||
int hm_NvAPI_GPU_RestoreCoolerSettings (NVAPI_PTR *nvapi, NvPhysicalGpuHandle hPhysicalGpu, NvU32 coolerIndex);
|
||||
|
||||
#endif // _EXT_NVAPI_H
|
||||
|
||||
Reference in New Issue
Block a user