mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
Use the same file `os_handle.h` on both Linux and Windows. Change implementation of `HandleType` -> `UnifiedHandle` to `std::variant<int, void *>` use `int` on Linux use `void *` on Windows Related-To: NEO-8092 Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
15 lines
205 B
C++
15 lines
205 B
C++
/*
|
|
* Copyright (C) 2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <variant>
|
|
|
|
namespace NEO {
|
|
using UnifiedHandle = std::variant<int, void *>;
|
|
}; // namespace NEO
|