Skip to content

Commit 7c44379

Browse files
committed
cleanup: Check that WINXP macro exists before comparing it.
Otherwise warnings happen.
1 parent 5c93231 commit 7c44379

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

toxcore/network.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
#define _XOPEN_SOURCE 700
2222
#endif /* _XOPEN_SOURCE */
2323

24-
#if defined(_WIN32) && defined(_WIN32_WINNT) && _WIN32_WINNT >= _WIN32_WINNT_WINXP
24+
#if defined(_WIN32) && defined(_WIN32_WINNT) && defined(_WIN32_WINNT_WINXP) && _WIN32_WINNT >= _WIN32_WINNT_WINXP
2525
#undef _WIN32_WINNT
2626
#define _WIN32_WINNT 0x501
27-
#endif /* defined(_WIN32) && defined(_WIN32_WINNT) && _WIN32_WINNT >= _WIN32_WINNT_WINXP */
27+
#endif /* defined(_WIN32) && defined(_WIN32_WINNT) && defined(_WIN32_WINNT_WINXP) && _WIN32_WINNT >= _WIN32_WINNT_WINXP */
2828

2929
#if !defined(OS_WIN32) && (defined(_WIN32) || defined(__WIN32__) || defined(WIN32))
3030
#define OS_WIN32

0 commit comments

Comments
 (0)