[Windows] Move __REQUIRED_RPCNDR_H_VERSION__ to the header.

This commit is contained in:
bruvzg 2024-08-25 22:52:01 +03:00
parent bc2d0e9f39
commit a07f92a81c
2 changed files with 5 additions and 1 deletions

View file

@ -136,7 +136,6 @@ if env.msvc:
]
else:
extra_defines += [
("__REQUIRED_RPCNDR_H_VERSION__", 475),
"HAVE_STRUCT_TIMESPEC",
]

View file

@ -36,6 +36,11 @@
#include "core/templates/self_list.h"
#include "servers/rendering/rendering_device_driver.h"
#ifndef _MSC_VER
// Match current version used by MinGW, MSVC and Direct3D 12 headers use 500.
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"