diff --git a/Makefile b/Makefile index 612627c..2400dd1 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,9 @@ GIT_REVISION ?= $(shell git rev-parse --short HEAD) CFLAGS := -Werror -Wall -g -I$(CURDIR) -D_GNU_SOURCE LDLIBS := -lpthread -lstdc++ +# Print #warnings +CFLAGS += -Wno-error=cpp + # libdatachannel deprecations on bookworm # error: 'HMAC_Init_ex' is deprecated: Since OpenSSL 3.0 CFLAGS += -Wno-error=deprecated-declarations diff --git a/output/rtsp/rtsp.cc b/output/rtsp/rtsp.cc index 94f075f..430247e 100644 --- a/output/rtsp/rtsp.cc +++ b/output/rtsp/rtsp.cc @@ -13,6 +13,13 @@ extern "C" { }; +#ifdef USE_RTSP +#if !__has_include() +#undef USE_RTSP +#warning "Missing RTSPServerSupportingHTTPStreaming.hh header. The RTSP support will be missing." +#endif // RTSPServerSupportingHTTPStreaming.hh +#endif // USE_RTSP + #ifdef USE_RTSP #include