From e59c4e77aba5a2aaa4b829337ca06b6a366bf408 Mon Sep 17 00:00:00 2001 From: derselbst Date: Thu, 19 Oct 2017 22:41:13 +0200 Subject: [PATCH] add FLUID_DEPRECATED --- include/fluidsynth.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/fluidsynth.h b/include/fluidsynth.h index 3713e4b3..1da4587f 100644 --- a/include/fluidsynth.h +++ b/include/fluidsynth.h @@ -46,6 +46,15 @@ extern "C" { #endif +#if defined(__GNUC__) || defined(__clang__) +# define FLUID_DEPRECATED __attribute__((deprecated)) +#elif defined(_MSC_VER) +# define FLUID_DEPRECATED __declspec(deprecated) +#else +# define FLUID_DEPRECATED +#endif + + /** * @file fluidsynth.h * @brief FluidSynth is a real-time synthesizer designed for SoundFont(R) files.