Common (Windows): allows COM be used in C sources

This commit is contained in:
李通洲
2026-05-06 15:01:40 +08:00
parent dca3b154ef
commit 8159f473cc
6 changed files with 15 additions and 16 deletions
+1 -1
View File
@@ -1,8 +1,8 @@
extern "C" {
#include "camera.h"
#include "common/library.h"
#include "common/windows/com.h"
}
#include "common/windows/com.hpp"
#include "common/windows/unicode.hpp"
#include "common/windows/util.hpp"
+1 -2
View File
@@ -2,6 +2,7 @@ extern "C" {
#include "media.h"
#include "common/time.h"
#include "common/windows/unicode.h"
#include "common/windows/com.h"
}
#if FF_HAVE_WINRT
@@ -15,8 +16,6 @@ extern "C" {
#include <winrt/Windows.Media.Control.h>
#include <winrt/Windows.Storage.Streams.h>
#include "common/windows/com.hpp"
#define FF_BIND_FRONT(method, pobject) std::bind_front(&std::remove_cvref_t<decltype(*(pobject))>::method, (pobject))
using winrt::impl::abi_t;
+1 -1
View File
@@ -1,8 +1,8 @@
extern "C" {
#include "sound.h"
#include "common/windows/com.h"
}
#include "common/windows/unicode.hpp"
#include "common/windows/com.hpp"
#include "common/windows/variant.hpp"
#include <initguid.h>