Skip to content

Commit 90570e7

Browse files
Mirza ÖzokyayRytoEX
authored andcommitted
libobs,win-capture,win-wasapi: Fix typo in macro WIN32_LEAN_AND_MEAN
Fix the macro to prevent unnecessary headers from being included by <windows.h>. This reduces compilation time and may prevent future bugs due to unexpected includes.
1 parent 3d9d066 commit 90570e7

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

libobs/obs-video.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "media-io/video-frame.h"
2626

2727
#ifdef _WIN32
28-
#define WIN32_MEAN_AND_LEAN
28+
#define WIN32_LEAN_AND_MEAN
2929
#include <windows.h>
3030
#endif
3131

plugins/win-capture/dc-capture.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "dc-capture.h"
22

3-
#define WIN32_MEAN_AND_LEAN
3+
#define WIN32_LEAN_AND_MEAN
44
#include <windows.h>
55

66
static inline void init_textures(struct dc_capture *capture)

plugins/win-wasapi/enum-wasapi.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#define WIN32_MEAN_AND_LEAN
3+
#define WIN32_LEAN_AND_MEAN
44
#include <windows.h>
55
#include <initguid.h>
66
#include <mmdeviceapi.h>

0 commit comments

Comments
 (0)