win: suppress clang reserved-id-macro warning when setting _WIN32_WINNT

This commit is contained in:
Bert Belder 2018-05-16 21:46:41 -07:00
parent 354e56be7e
commit fa16c36d95
No known key found for this signature in database
GPG Key ID: 7A77887B2E2ED461

View File

@ -5,6 +5,11 @@
#define WIN32_LEAN_AND_MEAN
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wreserved-id-macro"
#endif
#if defined(_WIN32_WINNT) && _WIN32_WINNT < 0x0600
#undef _WIN32_WINNT
#endif
@ -13,6 +18,10 @@
#define _WIN32_WINNT 0x0600
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifndef __GNUC__
#pragma warning(push, 1)
#endif