diff --git a/plugins/obs-outputs/flv-mux.c b/plugins/obs-outputs/flv-mux.c index 7b28512530e50d..f9eacbfdb972aa 100644 --- a/plugins/obs-outputs/flv-mux.c +++ b/plugins/obs-outputs/flv-mux.c @@ -15,6 +15,10 @@ along with this program. If not, see . ******************************************************************************/ +#ifdef _MSC_VER +#define WIN32_LEAN_AND_MEAN +#endif + #include #include #include diff --git a/plugins/obs-outputs/ftl-stream.c b/plugins/obs-outputs/ftl-stream.c index 99d6e95c491c2e..b4323c59d3e7cf 100644 --- a/plugins/obs-outputs/ftl-stream.c +++ b/plugins/obs-outputs/ftl-stream.c @@ -15,6 +15,10 @@ along with this program. If not, see . ******************************************************************************/ +#ifdef _MSC_VER +#define WIN32_LEAN_AND_MEAN +#endif + #include #include #include diff --git a/plugins/obs-outputs/obs-outputs.c b/plugins/obs-outputs/obs-outputs.c index 31534cbd3f04f4..72b848c4b82a6d 100644 --- a/plugins/obs-outputs/obs-outputs.c +++ b/plugins/obs-outputs/obs-outputs.c @@ -1,3 +1,7 @@ +#ifdef _MSC_VER +#define WIN32_LEAN_AND_MEAN +#endif + #include #include "obs-outputs-config.h" diff --git a/plugins/obs-outputs/rtmp-stream.c b/plugins/obs-outputs/rtmp-stream.c index 18cb18cd03a82b..7943f1ea59ae1a 100644 --- a/plugins/obs-outputs/rtmp-stream.c +++ b/plugins/obs-outputs/rtmp-stream.c @@ -15,6 +15,10 @@ along with this program. If not, see . ******************************************************************************/ +#ifdef _MSC_VER +#define WIN32_LEAN_AND_MEAN +#endif + #include "rtmp-stream.h" #ifndef SEC_TO_NSEC diff --git a/plugins/obs-outputs/rtmp-windows.c b/plugins/obs-outputs/rtmp-windows.c index 3b794fa099214a..30c0ed5e9068fe 100644 --- a/plugins/obs-outputs/rtmp-windows.c +++ b/plugins/obs-outputs/rtmp-windows.c @@ -1,3 +1,7 @@ +#ifdef _MSC_VER +#define WIN32_LEAN_AND_MEAN +#endif + #ifdef _WIN32 #include "rtmp-stream.h" #include