From c21bc267fd984ad9e141d1c74903d8c1a87a08a9 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Mon, 22 Nov 2021 00:26:37 -0600 Subject: [PATCH] Fix windows stupidity --- .../ENESMBusController/ENESMBusControllerDetect.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Controllers/ENESMBusController/ENESMBusControllerDetect.cpp b/Controllers/ENESMBusController/ENESMBusControllerDetect.cpp index 1793df635..d05b3fc19 100644 --- a/Controllers/ENESMBusController/ENESMBusControllerDetect.cpp +++ b/Controllers/ENESMBusController/ENESMBusControllerDetect.cpp @@ -17,6 +17,13 @@ using namespace std::chrono_literals; +/*----------------------------------------------------------------------*\ +| Windows defines "interface" for some reason. Work around this | +\*----------------------------------------------------------------------*/ +#ifdef interface +#undef interface +#endif + /*----------------------------------------------------------------------*\ | This list contains the available SMBus addresses for mapping ENE RAM | \*----------------------------------------------------------------------*/