From 1df0e13cc44041743836065c66928c06a5c035a0 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 20 Aug 2020 14:06:46 -0700 Subject: [PATCH] Fix for absolutely wonderful Windows feature It turns out that Windows is more of a PoC than I ever imagined. The system headers will have something like this in it: #define __STRUCT__ struct #define interface __STRUCT__ which means that using the identifier "interface" will result in completely indecipherable error messages from a Windows compiler. That's some truly broken stinking garbage. It's not like "interface" is even a bad identifier. Let's just #undef this crazy feature. Signed-off-by: Linus Torvalds --- src/descriptor-private.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/descriptor-private.h b/src/descriptor-private.h index d829422..3346654 100644 --- a/src/descriptor-private.h +++ b/src/descriptor-private.h @@ -24,6 +24,9 @@ #include +// Oh joy. Windows is some truly horrendously broken crap +#undef interface + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */