* Rearrange includes in icd_windows.c to ensure DXGI.h has INITGUID defined when it's included
* Fix extern "C" usage in Windows build
* OpenCL is a trademark of Apple Inc. used under license by Khronos.
*/
+#include <initguid.h>
+
#include "icd.h"
#include "icd_windows.h"
#include "icd_windows_hkr.h"
#include <windows.h>
#include <winreg.h>
-#include <initguid.h>
#include <dxgi.h>
typedef HRESULT (WINAPI *PFN_CREATE_DXGI_FACTORY)(REFIID, void **);
#include <stdbool.h>
#include <windows.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
extern const LUID ZeroLuid;
BOOL adapterAdd(const char* szName, LUID luid);
// Do not free the memory returned by this function.
const char* getOpenCLRegKeyName(void);
+
+#ifdef __cplusplus
+}
+#endif
* OpenCL is a trademark of Apple Inc. used under license by Khronos.
*/
-extern "C"
-{
#include "icd.h"
#include "icd_windows.h"
-}
#ifdef OPENCL_ICD_LOADER_DISABLE_OPENCLON12