From 236efcb155f952f5d7d9fcd5891a3060ad254e68 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 1 Sep 2026 21:49:36 +1000 Subject: [PATCH] [host] nvfbc: keep C++ headers outside C linkage --- host/platform/Windows/capture/NVFBC/src/wrapper.cpp | 5 +++-- host/platform/Windows/capture/NVFBC/src/wrapper.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/host/platform/Windows/capture/NVFBC/src/wrapper.cpp b/host/platform/Windows/capture/NVFBC/src/wrapper.cpp index 4ae7a8e4..94af341b 100644 --- a/host/platform/Windows/capture/NVFBC/src/wrapper.cpp +++ b/host/platform/Windows/capture/NVFBC/src/wrapper.cpp @@ -18,11 +18,12 @@ * Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include "wrapper.h" + extern "C" { - #include "wrapper.h" #include "common/windebug.h" -}; +} #include #include diff --git a/host/platform/Windows/capture/NVFBC/src/wrapper.h b/host/platform/Windows/capture/NVFBC/src/wrapper.h index d04ed4b9..1e06749b 100644 --- a/host/platform/Windows/capture/NVFBC/src/wrapper.h +++ b/host/platform/Windows/capture/NVFBC/src/wrapper.h @@ -21,12 +21,12 @@ #include #include +#include "interface/capture.h" + #ifdef __cplusplus extern "C" { #endif -#include "interface/capture.h" - typedef struct stNvFBCHandle * NvFBCHandle; enum BufferFormat