libobs: Add preprocessor directive for AutoRelease types
Since these helpers come from obs-websocket, obs-websocket needs a way to disable its own helpers if OBS is new enough to include them already.master
parent
e35b8d5888
commit
647fb1376d
|
@ -47,6 +47,7 @@ using OBSWeakEncoder = OBSRef<obs_weak_encoder_t *, obs_weak_encoder_addref,
|
|||
using OBSWeakService = OBSRef<obs_weak_service_t *, obs_weak_service_addref,
|
||||
obs_weak_service_release>;
|
||||
|
||||
#define OBS_AUTORELEASE
|
||||
inline void ___source_dummy_addref(obs_source_t *){};
|
||||
inline void ___scene_dummy_addref(obs_scene_t *){};
|
||||
inline void ___sceneitem_dummy_addref(obs_sceneitem_t *){};
|
||||
|
|
Loading…
Reference in New Issue