1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Merge pull request #22393 from TolyaTalamanov:at/fix-gapi-vpl-windows-build

* Fix G-API OneVPL compilation

* Fix macro

__WIN32__ -> _WIN32
This commit is contained in:
Anatoliy Talamanov
2022-08-20 18:24:41 +01:00
committed by GitHub
parent e14c3cff85
commit 925ff6241f
2 changed files with 4 additions and 4 deletions
@@ -2440,7 +2440,7 @@ TEST(OneVPL_Source, Init)
std::vector<CfgParam> src_params;
src_params.push_back(CfgParam::create_implementation(MFX_IMPL_TYPE_HARDWARE));
#ifdef __WIN32
#ifdef _WIN32
src_params.push_back(CfgParam::create_acceleration_mode(MFX_ACCEL_MODE_VIA_D3D11));
#elif defined(__linux__)
src_params.push_back(CfgParam::create_acceleration_mode(MFX_ACCEL_MODE_VIA_VAAPI));