[winpr,pragma] require VS2019 for warning pragma

This commit is contained in:
akallabeth 2024-10-16 20:15:17 +02:00
parent 122aa76ef1
commit d870035509
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -27,8 +27,10 @@
#define WINPR_PRAGMA_WARNING(msg) WINPR_DO_PRAGMA(GCC warning #msg)
#elif defined(__clang__)
#define WINPR_PRAGMA_WARNING(msg) WINPR_DO_PRAGMA(GCC warning #msg)
#elif defined(_MSC_VER)
#elif defined(_MSC_VER) && (_MSC_VER >= 1920)
#define WINPR_PRAGMA_WARNING(msg) WINPR_DO_PRAGMA(message \x28 #msg \x29)
#else
#define WINPR_PRAGMA_WARNING(msg)
#endif
// C99 related macros