Skip to content

Commit d811cfd

Browse files
authored
Update condition for enum value conflicting with windows headers (#2979)
## Description This PR updates the preprocessor condition for the deprecated `ALTERNATE` enum value in `KVCrushAnchorPointMode` to avoid conflicts with Windows headers and exclude it on all Windows platforms CVS-175618 ## Checklist: - [ ] Tests have been updated or added to cover the new code - N/A - [x] This patch fully addresses the ticket - [ ] I have made corresponding changes to the documentation - N/A
1 parent fee79fe commit d811cfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cpp/include/openvino/genai/cache_eviction.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ enum class KVCrushAnchorPointMode {
3131
MEAN, /**<In this mode the anchor point is a random binary vector of 0s and 1s, where individual values are decided
3232
based on majority value */
3333
ALTERNATING, /**In this mode the anchor point is a vector of alternate 0s and 1s */
34-
#if !defined(_WIN32) || !defined(_MSC_VER) || _MSC_VER <= 1942
35-
// KVCrushAnchorPointMode::ALTERNATE is conflicting with definitions in windows.h in newer MSVC versions
34+
#ifndef _WIN32
35+
// KVCrushAnchorPointMode::ALTERNATE is conflicting with definitions in windows.h in MSVC versions (https://learn.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-getpolyfillmode)
3636
ALTERNATE OPENVINO_ENUM_DEPRECATED("Please, use `KVCrushAnchorPointMode::ALTERNATING` instead of `KVCrushAnchorPointMode::ALTERNATE`.") = ALTERNATING /**In this mode the anchor point is a vector of alternate 0s and 1s */
3737
#endif
3838
};

0 commit comments

Comments
 (0)