From 4744283aed293a2bc631e20be810c68e0e37110d Mon Sep 17 00:00:00 2001 From: Zhao Zhili Date: Sun, 7 Feb 2021 17:28:36 +0800 Subject: [PATCH] [core] Fix warning of undefined ENABLE_EXPERIMENTAL_BONDING The warning can be triggered when srt.h is included by other project. --- srtcore/srt.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/srtcore/srt.h b/srtcore/srt.h index 5317720db..30be3e061 100644 --- a/srtcore/srt.h +++ b/srtcore/srt.h @@ -161,6 +161,10 @@ static const int32_t SRTGROUP_MASK = (1 << 30); typedef int SYSSOCKET; #endif +#ifndef ENABLE_EXPERIMENTAL_BONDING +#define ENABLE_EXPERIMENTAL_BONDING 0 +#endif + typedef SYSSOCKET UDPSOCKET;