Skip to content

Commit

Permalink
obs-outputs: added WIN32_LEAN_AND_MEAN to only the files caused pro…
Browse files Browse the repository at this point in the history
…blem
  • Loading branch information
tommyvct committed May 22, 2021
1 parent 1db7db1 commit 64fdaac
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/obs-outputs/flv-mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/

#ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN
#endif

#include <obs.h>
#include <stdio.h>
#include <util/dstr.h>
Expand Down
4 changes: 4 additions & 0 deletions plugins/obs-outputs/ftl-stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/

#ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN
#endif

#include <obs-module.h>
#include <obs-avc.h>
#include <util/platform.h>
Expand Down
4 changes: 4 additions & 0 deletions plugins/obs-outputs/obs-outputs.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN
#endif

#include <obs-module.h>

#include "obs-outputs-config.h"
Expand Down
4 changes: 4 additions & 0 deletions plugins/obs-outputs/rtmp-stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/

#ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN
#endif

#include "rtmp-stream.h"

#ifndef SEC_TO_NSEC
Expand Down
4 changes: 4 additions & 0 deletions plugins/obs-outputs/rtmp-windows.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN
#endif

#ifdef _WIN32
#include "rtmp-stream.h"
#include <winsock2.h>
Expand Down

0 comments on commit 64fdaac

Please sign in to comment.