commit 8b4a301d6088cade779c4097a5f34fe743ebaadd
parent 18e4533b4772ac7ffd35e4a2ca68603bdc116803
Author: JP Cimalando <jp-dev@inbox.ru>
Date: Thu, 7 Feb 2019 21:23:33 +0100
Provide a DISTRHO_DEPRECATED attribute
Diffstat:
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/distrho/src/DistrhoDefines.h b/distrho/src/DistrhoDefines.h
@@ -66,6 +66,15 @@
# define nullptr NULL
#endif
+/* Define DISTRHO_DEPRECATED */
+#if defined(__GNUC__)
+# define DISTRHO_DEPRECATED __attribute__((deprecated))
+#elif defined(_MSC_VER)
+# define DISTRHO_DEPRECATED __declspec(deprecated)
+#else
+# define DISTRHO_DEPRECATED
+#endif
+
/* Define DISTRHO_SAFE_ASSERT* */
#define DISTRHO_SAFE_ASSERT(cond) if (! (cond)) d_safe_assert(#cond, __FILE__, __LINE__);
#define DISTRHO_SAFE_ASSERT_BREAK(cond) if (! (cond)) { d_safe_assert(#cond, __FILE__, __LINE__); break; }