summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfalkTX <falktx@gmail.com>2018-09-30 22:06:56 +0200
committerfalkTX <falktx@gmail.com>2018-09-30 22:06:56 +0200
commite170f81fbc53f7085aa0ba50d8cba24230974200 (patch)
tree92202e49eced925e03524ce6c58aa3d2faea620c
parent5f117eece4006f72c57bab63ac9e578335b4f912 (diff)
Print warning for plugins with state and presets but not full state
-rw-r--r--distrho/src/DistrhoPluginChecks.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/distrho/src/DistrhoPluginChecks.h b/distrho/src/DistrhoPluginChecks.h
index a3690b07..24f25d8e 100644
--- a/distrho/src/DistrhoPluginChecks.h
+++ b/distrho/src/DistrhoPluginChecks.h
@@ -126,7 +126,8 @@
// -----------------------------------------------------------------------
// Enable full state if plugin exports presets
-#if DISTRHO_PLUGIN_WANT_PROGRAMS && DISTRHO_PLUGIN_WANT_STATE
+#if DISTRHO_PLUGIN_WANT_PROGRAMS && DISTRHO_PLUGIN_WANT_STATE && ! DISTRHO_PLUGIN_WANT_FULL_STATE
+# warning Plugins with programs and state need to implement full state API
# undef DISTRHO_PLUGIN_WANT_FULL_STATE
# define DISTRHO_PLUGIN_WANT_FULL_STATE 1
#endif