Skip to content

Commit 2e3e4a8

Browse files
majvanJakubFara
authored andcommitted
Workaround the LoadImage macro in Windows.
1 parent 7c17cfc commit 2e3e4a8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/src/ondevice_tests/dynamic_calibration_test.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
#include "depthai/utility/Compression.hpp"
1616
#include "depthai/utility/matrixOps.hpp"
1717

18+
// This is a workaround to Windows API. Windows defines 2 WinAPI functions: LoadImageA and LoadImageW
19+
// However, for user, a macro LoadImage is provided which selectes which of those 2 function will be
20+
// used during compilation.
21+
// When using our LoadImage in dcl namespace, the macro translates it and the compilation fails.
22+
#undef LoadImage
23+
1824
using namespace std::chrono_literals;
1925

2026
namespace {

0 commit comments

Comments
 (0)