diff --git a/audio/filters/boolean.h b/audio/filters/boolean.h new file mode 100644 index 0000000000..b0a20bd8d6 --- /dev/null +++ b/audio/filters/boolean.h @@ -0,0 +1,33 @@ +/* RetroArch - A frontend for libretro. + * Copyright (C) 2010-2014 - Hans-Kristian Arntzen + * + * RetroArch 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 Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * RetroArch 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. + * + * You should have received a copy of the GNU General Public License along with RetroArch. + * If not, see . + */ + +#ifndef __RARCH_BOOLEAN_H +#define __RARCH_BOOLEAN_H + +#ifndef __cplusplus + +#if defined(_MSC_VER) && !defined(SN_TARGET_PS3) +/* Hack applied for MSVC when compiling in C89 mode as it isn't C99 compliant. */ +#define bool unsigned char +#define true 1 +#define false 0 +#else +#include +#endif + +#endif + +#endif + diff --git a/audio/filters/eq.c b/audio/filters/eq.c index ad5b50b968..bfea679658 100644 --- a/audio/filters/eq.c +++ b/audio/filters/eq.c @@ -22,8 +22,7 @@ #include #include #include -#include -#include +#include "boolean.h" #include #ifndef M_PI