Skip to content

Commit

Permalink
libobs,win-capture,win-wasapi: Fix typo in macro WIN32_LEAN_AND_MEAN
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Mirza Özokyay authored and RytoEX committed Mar 3, 2025
1 parent 3d9d066 commit 90570e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libobs/obs-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "media-io/video-frame.h"

#ifdef _WIN32
#define WIN32_MEAN_AND_LEAN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif

Expand Down
2 changes: 1 addition & 1 deletion plugins/win-capture/dc-capture.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "dc-capture.h"

#define WIN32_MEAN_AND_LEAN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>

static inline void init_textures(struct dc_capture *capture)
Expand Down
2 changes: 1 addition & 1 deletion plugins/win-wasapi/enum-wasapi.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#define WIN32_MEAN_AND_LEAN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <initguid.h>
#include <mmdeviceapi.h>
Expand Down

0 comments on commit 90570e7

Please sign in to comment.