Skip to content

Commit c043a6a

Browse files
committed
Fix NTDDI_VERSION < NTDDI_VISTA compile error
1 parent 9fa9fc5 commit c043a6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yasio/compiler/feature_test.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ SOFTWARE.
177177
# define YASIO__HAS_SA_LEN 0
178178
#endif
179179

180-
#if !defined(_WIN32) || defined(NTDDI_VISTA)
180+
#if !defined(_WIN32) || NTDDI_VERSION >= NTDDI_VISTA
181181
# define YASIO__HAS_NTOP 1
182182
#else
183183
# define YASIO__HAS_NTOP 0

0 commit comments

Comments
 (0)