From 2857ea88e931632cb3a00e03f0889294152a84ad Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 18 Dec 2023 19:14:52 +0000 Subject: [PATCH] stdafx: Add missing EMPTY_BASES define --- src/stdafx.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/stdafx.h b/src/stdafx.h index e03689557e..57aec562c0 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -115,6 +115,13 @@ # define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers #endif +#if defined(_MSC_VER) + // See https://learn.microsoft.com/en-us/cpp/cpp/empty-bases?view=msvc-170 +# define EMPTY_BASES __declspec(empty_bases) +#else +# define EMPTY_BASES +#endif + /* Stuff for MSVC */ #if defined(_MSC_VER) # pragma once