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
tt2468 2021-12-17 15:50:00 -08:00 committed by Matt Gajownik
parent e35b8d5888
commit 647fb1376d
1 changed files with 1 additions and 0 deletions

View File

@ -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 *){};