Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix(meeting-aec): shim rtc_base/win32.h includes windows.h

Gabriel Steindaca214f9830
diff --git a/native/meeting-aec-helper/compat/rtc_base/win32.h b/native/meeting-aec-helper/compat/rtc_base/win32.h
index b223aeac4..da2c6d88b 100644
--- a/native/meeting-aec-helper/compat/rtc_base/win32.h
+++ b/native/meeting-aec-helper/compat/rtc_base/win32.h
@@ -1,6 +1,13 @@
-// Stub: webrtc-apm omits rtc_base/win32.h but time_utils.cc includes it under
-// WEBRTC_WIN. The symbols actually referenced (FILETIME, etc.) come from
-// <minwinbase.h>, which is included separately.
+// Shim: webrtc-apm omits rtc_base/win32.h but time_utils.cc includes it under
+// WEBRTC_WIN and then includes <minwinbase.h>, which requires the base Win32
+// types (HANDLE, DWORD, LPVOID, ...) to already be declared.
#ifndef OPENWHISPR_COMPAT_RTC_BASE_WIN32_H_
#define OPENWHISPR_COMPAT_RTC_BASE_WIN32_H_
+
+#ifndef WIN32_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN
+#endif
+#include <winsock2.h>
+#include <windows.h>
+
#endif