#include "icd_windows.h"
}
+#ifdef OPENCL_ICD_LOADER_DISABLE_OPENCLON12
+
+extern "C" bool khrIcdOsVendorsEnumerateAppPackage()
+{
+ KHR_ICD_TRACE("OpenCLOn12 is disabled\n");
+ return false;
+}
+
+#else
+
#include "icd_windows_apppackage.h"
#include <windows.management.deployment.h>
extern "C" bool khrIcdOsVendorsEnumerateAppPackage()
{
-#ifdef OPENCL_ICD_LOADER_DISABLE_OPENCLON12
- KHR_ICD_TRACE("OpenCLOn12 is disabled\n");
- return false;
-#else
HRESULT hrInit = Windows::Foundation::Initialize(RO_INIT_MULTITHREADED);
if (hrInit == RPC_E_CHANGED_MODE)
{
return true;
}
return false;
+}
+
#endif
-}
\ No newline at end of file