obs-outputs: Add WIN32_LEAN_AND_MEAN to avoid symbol clash

This commit is contained in:
Tommy Vercetti
2021-05-22 13:46:20 -05:00
committed by Jim
parent 66c27c2cea
commit e075ad5bca
5 changed files with 20 additions and 0 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -1,3 +1,7 @@
#ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN
#endif
#include <obs-module.h>
#include "obs-outputs-config.h"

View File

@@ -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

View File

@@ -1,3 +1,7 @@
#ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN
#endif
#ifdef _WIN32
#include "rtmp-stream.h"
#include <winsock2.h>