From 227732d15ba06ffeaa4d3e2f70b65e544b2ea3b2 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Tue, 4 Nov 2014 15:42:04 +0000 Subject: [PATCH] When building with MSVC undef type VOID if we're declaring an enum called VOID --- libs/ardour/ardour/variant.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/ardour/ardour/variant.h b/libs/ardour/ardour/variant.h index cc483e3cdf..712d559c94 100644 --- a/libs/ardour/ardour/variant.h +++ b/libs/ardour/ardour/variant.h @@ -29,6 +29,10 @@ #include "ardour/libardour_visibility.h" #include "pbd/compose.h" +#ifdef COMPILER_MSVC +#undef VOID +#endif + namespace ARDOUR { /** A value with dynamic type (tagged union). */