Przeglądaj źródła

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.
Mirza Özokyay 7 miesięcy temu
rodzic
commit
90570e7a70

+ 1 - 1
libobs/obs-video.c

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

+ 1 - 1
plugins/win-capture/dc-capture.c

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

+ 1 - 1
plugins/win-wasapi/enum-wasapi.hpp

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