diff --git a/opencl/api/opencl/amdocl/cl_context.cpp b/opencl/api/opencl/amdocl/cl_context.cpp index 1abf6ae045..0f659adb39 100644 --- a/opencl/api/opencl/amdocl/cl_context.cpp +++ b/opencl/api/opencl/amdocl/cl_context.cpp @@ -513,7 +513,7 @@ clGetExtensionFunctionAddress(const char* func_name) #if cl_khr_il_program CL_EXTENSION_ENTRYPOINT_CHECK(clCreateProgramWithILKHR); #endif // cl_khr_il_program -#if cl_amd_liquid_flash +#if cl_amd_liquid_flash && !defined(OPENCL_MAINLINE) CL_EXTENSION_ENTRYPOINT_CHECK(clCreateFileObjectAMD); #endif // cl_amd_liquid_flash break; @@ -535,7 +535,7 @@ clGetExtensionFunctionAddress(const char* func_name) CL_EXTENSION_ENTRYPOINT_CHECK(clEnqueueWaitSignalAMD); CL_EXTENSION_ENTRYPOINT_CHECK(clEnqueueWriteSignalAMD); CL_EXTENSION_ENTRYPOINT_CHECK(clEnqueueMakeBuffersResidentAMD); -#if cl_amd_liquid_flash +#if cl_amd_liquid_flash && !defined(OPENCL_MAINLINE) CL_EXTENSION_ENTRYPOINT_CHECK(clEnqueueWriteBufferFromFileAMD); #endif // cl_amd_liquid_flash break; @@ -597,7 +597,7 @@ clGetExtensionFunctionAddress(const char* func_name) CL_EXTENSION_ENTRYPOINT_CHECK(clRetainDeviceEXT); CL_EXTENSION_ENTRYPOINT_CHECK(clReleaseDeviceEXT); #endif // cl_ext_device_fission -#if cl_amd_liquid_flash +#if cl_amd_liquid_flash && !defined(OPENCL_MAINLINE) CL_EXTENSION_ENTRYPOINT_CHECK(clRetainFileObjectAMD); CL_EXTENSION_ENTRYPOINT_CHECK(clReleaseFileObjectAMD); #endif // cl_amd_liquid_flash diff --git a/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp b/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp index f51ac6424e..44947fa080 100644 --- a/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp +++ b/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp @@ -13,11 +13,11 @@ typedef wchar_t char_t; #endif // __linux__ -#if defined(_WIN32) && !defined(_LP64) +#if !defined(OPENCL_MAINLINE) && defined(_WIN32) #define WITH_LIQUID_FLASH 1 #endif // _WIN32 -#if defined WITH_LIQUID_FLASH +#if defined(WITH_LIQUID_FLASH) #include "lf.h" #endif // WITH_LIQUID_FLASH