Skip to content

Commit

Permalink
Handle compat branch - undo before final merge
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Jan 16, 2024
1 parent 125859e commit 3eb26f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/clap/helpers/plugin.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,11 @@ namespace clap { namespace helpers {

if (!strcmp(id, CLAP_EXT_STATE) && self.implementsState())
return &_pluginState;
if ((!strcmp(id, CLAP_EXT_STATE_CONTEXT) || !strcmp(id, CLAP_EXT_STATE_CONTEXT_COMPAT)) &&
if ((!strcmp(id, CLAP_EXT_STATE_CONTEXT)
#ifdef CLAP_EXT_STATE_CONTEXT_COMPAT
|| !strcmp(id, CLAP_EXT_STATE_CONTEXT_COMPAT)
#endif
) &&
self.implementsStateContext() && self.implementsState())
return &_pluginStateContext;
if ((!strcmp(id, CLAP_EXT_PRESET_LOAD) || !strcmp(id, CLAP_EXT_PRESET_LOAD_COMPAT)) &&
Expand Down

0 comments on commit 3eb26f7

Please sign in to comment.