Skip to content

Commit

Permalink
cleanup: Check that WINXP macro exists before comparing it.
Browse files Browse the repository at this point in the history
Otherwise warnings happen.
  • Loading branch information
iphydf committed Feb 8, 2024
1 parent 5c93231 commit b9dc3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toxcore/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#define _XOPEN_SOURCE 700
#endif /* _XOPEN_SOURCE */

#if defined(_WIN32) && defined(_WIN32_WINNT) && _WIN32_WINNT >= _WIN32_WINNT_WINXP
#if defined(_WIN32) && defined(_WIN32_WINNT) && defined(_WIN32_WINNT_WINXP) && _WIN32_WINNT >= _WIN32_WINNT_WINXP
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x501
#endif /* defined(_WIN32) && defined(_WIN32_WINNT) && _WIN32_WINNT >= _WIN32_WINNT_WINXP */
Expand Down

0 comments on commit b9dc3a2

Please sign in to comment.