diff --git a/include/mingw-compat/condition_variable b/include/mingw-compat/condition_variable index 5ccf42c..256734c 100644 --- a/include/mingw-compat/condition_variable +++ b/include/mingw-compat/condition_variable @@ -18,3 +18,8 @@ #pragma once #include_next #include "mingw.condition_variable.h" + +#undef IN +#undef OUT +#undef far +#undef near diff --git a/include/mingw-compat/mutex b/include/mingw-compat/mutex index bfc8b30..4571281 100644 --- a/include/mingw-compat/mutex +++ b/include/mingw-compat/mutex @@ -18,3 +18,8 @@ #pragma once #include_next #include "mingw.mutex.h" + +#undef IN +#undef OUT +#undef far +#undef near diff --git a/include/mingw-compat/thread b/include/mingw-compat/thread index ae813a7..2d5cb43 100644 --- a/include/mingw-compat/thread +++ b/include/mingw-compat/thread @@ -18,3 +18,8 @@ #pragma once #include_next #include "mingw.thread.h" + +#undef IN +#undef OUT +#undef far +#undef near diff --git a/include/rack.hpp b/include/rack.hpp deleted file mode 100644 index eb80d43..0000000 --- a/include/rack.hpp +++ /dev/null @@ -1,33 +0,0 @@ -/* - * DISTRHO Cardinal Plugin - * Copyright (C) 2021 Filipe Coelho - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 3 of - * the License, or any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * For a full copy of the GNU General Public License see the LICENSE file. - */ - -#pragma once - -#include_next "rack.hpp" - -// If building for Windows, make sure to import the windows header now so we can undef some stuff -#ifdef _WIN32 -# include -# undef IN -# undef OUT -# undef VOID -# undef far -# undef near -# define ABC ABC_ -# define Chord Chord_ -# define VOID VOID_ -#endif